From 0277b2e478cc3dfa63f69b254566ac911b8f2024 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Thu, 11 Jul 2019 13:31:54 +0200 Subject: FolderWatcher: Wait for ready before testing #7305 --- src/gui/folderwatcher_win.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/folderwatcher_win.h') diff --git a/src/gui/folderwatcher_win.h b/src/gui/folderwatcher_win.h index a556e9146..c89bfbbae 100644 --- a/src/gui/folderwatcher_win.h +++ b/src/gui/folderwatcher_win.h @@ -54,6 +54,7 @@ protected: signals: void changed(const QString &path); void lostChanges(); + void ready(); private: QString _path; @@ -74,6 +75,9 @@ public: FolderWatcherPrivate(FolderWatcher *p, const QString &path); ~FolderWatcherPrivate(); + /// Set to non-zero once the WatcherThread is capturing events. + QAtomicInt _ready; + private: FolderWatcher *_parent; WatcherThread *_thread; -- cgit v1.2.3