From e5fd0b57f73e0315212fdb098efc1a617fc02924 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 7 Oct 2022 22:12:43 -0400 Subject: Display a message when there's no marked images to review. --- qdeduper/mingui.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 g; -- cgit v1.2.3