aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-10-07 22:12:43 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-10-07 22:12:43 -0400
commite5fd0b57f73e0315212fdb098efc1a617fc02924 (patch)
treec84be2d1b67a3bf219181c4b993ba69a50c30180
parentaa21eacf0660184fa5401df7c93a320c4c285b57 (diff)
downloaddeduper-e5fd0b57f73e0315212fdb098efc1a617fc02924.tar.xz
Display a message when there's no marked images to review.
-rw-r--r--qdeduper/mingui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qdeduper/mingui.cpp b/qdeduper/mingui.cpp
index d7c8ea4..6ddeda2 100644
--- a/qdeduper/mingui.cpp
+++ b/qdeduper/mingui.cpp
@@ -803,6 +803,11 @@ void DeduperMainWindow::show_group(size_t gid)
void DeduperMainWindow::show_marked()
{
+ if (marked.empty())
+ {
+ this->sb->showMessage("No marked images.", 1000);
+ return;
+ }
this->id->set_show_hotkey(false);
this->vm = ViewMode::view_marked;
std::vector<size_t> g;