Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2019-07-11 14:31:54 +0300
committerChristian Kamm <mail@ckamm.de>2019-07-12 13:22:50 +0300
commit0277b2e478cc3dfa63f69b254566ac911b8f2024 (patch)
tree0774ab41a8ed97972d14af1727f5b9e5fb25dc1f /src/gui/folderwatcher_win.h
parent7a699213b9abd68af2586ab01b9bfec3c8b85211 (diff)
FolderWatcher: Wait for ready before testing #7305
Diffstat (limited to 'src/gui/folderwatcher_win.h')
-rw-r--r--src/gui/folderwatcher_win.h4
1 files changed, 4 insertions, 0 deletions
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;