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

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2018-04-24 10:52:15 +0300
committerCamila San <hello@camila.codes>2018-08-28 18:04:25 +0300
commit2844c925eb45ae3943db2707e3afd8cb19e3269c (patch)
treeb2e38916160bc4e8a859c6ce0da602af5d6f93ab /src/gui/folderwatcher.cpp
parent028da6182467ca08a92c5da3385f9dc5d81e6667 (diff)
Show a tray message when a folder watcher becomes unreliable #6119
Diffstat (limited to 'src/gui/folderwatcher.cpp')
-rw-r--r--src/gui/folderwatcher.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/folderwatcher.cpp b/src/gui/folderwatcher.cpp
index 0b5799d34..d8136ff36 100644
--- a/src/gui/folderwatcher.cpp
+++ b/src/gui/folderwatcher.cpp
@@ -38,19 +38,22 @@ namespace OCC {
Q_LOGGING_CATEGORY(lcFolderWatcher, "nextcloud.gui.folderwatcher", QtInfoMsg)
-FolderWatcher::FolderWatcher(const QString &root, Folder *folder)
+FolderWatcher::FolderWatcher(Folder *folder)
: QObject(folder)
, _folder(folder)
{
- _d.reset(new FolderWatcherPrivate(this, root));
-
- _timer.start();
}
FolderWatcher::~FolderWatcher()
{
}
+void FolderWatcher::init(const QString &root)
+{
+ _d.reset(new FolderWatcherPrivate(this, root));
+ _timer.start();
+}
+
bool FolderWatcher::pathIsIgnored(const QString &path)
{
if (path.isEmpty())