From 66f0ce6616edcb6e44d235ae779170eb28c9c7c0 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 9 Oct 2017 12:06:57 +0200 Subject: FolderWatcher: reliability and data-loss signal Add state and signal to catch the following two known problems: * Linux: inotify user watch pool is exhausted. Folder watcher becomes unreliable. * Windows: buffer is too small, some notifications are lost but watching stays reliable. --- src/gui/folderwatcher.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/folderwatcher.cpp') diff --git a/src/gui/folderwatcher.cpp b/src/gui/folderwatcher.cpp index 0f5fee413..443956d19 100644 --- a/src/gui/folderwatcher.cpp +++ b/src/gui/folderwatcher.cpp @@ -68,6 +68,11 @@ bool FolderWatcher::pathIsIgnored(const QString &path) return false; } +bool FolderWatcher::isReliable() const +{ + return _isReliable; +} + void FolderWatcher::changeDetected(const QString &path) { QStringList paths(path); -- cgit v1.2.3