From e223bc238ea3e2dbeaabcc4c9218558d26273de5 Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 13 Aug 2015 13:51:13 +0200 Subject: Fix crash in deleteFiles This was a hard one. SmDirWatcher raced against the model. Stop and quit the watcher before actually deleting files. That can take a while if file operations are in progress, so show the busy cursor. --- smdirmodel.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'smdirmodel.h') diff --git a/smdirmodel.h b/smdirmodel.h index a775553..f8e647b 100644 --- a/smdirmodel.h +++ b/smdirmodel.h @@ -71,4 +71,13 @@ class TimerHandler { QTimer *mTimer; }; +class WatcherHandler { + public: + WatcherHandler(SmDirWatcher *watcher); + ~WatcherHandler(); + + private: + SmDirWatcher *mWatcher; +}; + #endif // SMDIRMODEL_H -- cgit v1.2.3-70-g09d2