diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-10-07 22:12:43 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-10-07 22:12:43 -0400 |
commit | e5fd0b57f73e0315212fdb098efc1a617fc02924 (patch) | |
tree | c84be2d1b67a3bf219181c4b993ba69a50c30180 /qdeduper | |
parent | aa21eacf0660184fa5401df7c93a320c4c285b57 (diff) | |
download | deduper-e5fd0b57f73e0315212fdb098efc1a617fc02924.tar.xz |
Display a message when there's no marked images to review.
Diffstat (limited to 'qdeduper')
-rw-r--r-- | qdeduper/mingui.cpp | 5 |
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; |