From 683c66d81898e1d7d4cb814a5740169529c3313e Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 19 Sep 2022 18:26:36 -0400 Subject: Scanning can now be cancelled. Fix terminate() of thread pool blocking if wait() is already called. --- qdeduper/mingui.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qdeduper/mingui.hpp') diff --git a/qdeduper/mingui.hpp b/qdeduper/mingui.hpp index 94f5bbd..e4b1c3f 100644 --- a/qdeduper/mingui.hpp +++ b/qdeduper/mingui.hpp @@ -10,6 +10,7 @@ #include #include +#include "filescanner.hpp" #include "sigdb_qt.hpp" class QHBoxLayout; @@ -22,6 +23,7 @@ class QProgressDialog; class QSplitter; class QStandardItemModel; class QToolBar; +class FileScanner; class ImageItemDelegate; namespace fs = std::filesystem; @@ -42,6 +44,7 @@ private: ImageItemDelegate *id = nullptr; QProgressDialog *pd = nullptr; SignatureDB *sdb = nullptr; + FileScanner *fsc = nullptr; std::size_t curgroup; bool nohotkeywarn; -- cgit v1.2.3