Commit 194bda28 authored by Edric Milaret's avatar Edric Milaret

contact: temp disabling of directory watcher because of 2x add

Issue: #78823
Change-Id: I4d969b2f00a23473ac95750a116cdb01f332f7ad
parent 2afd2bfe
...@@ -222,10 +222,11 @@ WindowsContactBackend::load() ...@@ -222,10 +222,11 @@ WindowsContactBackend::load()
QtConcurrent::run(this, &WindowsContactBackend::loadRun); QtConcurrent::run(this, &WindowsContactBackend::loadRun);
watcher_->addPath(QStandardPaths::writableLocation watcher_->addPath(QStandardPaths::writableLocation
(QStandardPaths::HomeLocation) + "/Contacts"); (QStandardPaths::HomeLocation) + "/Contacts");
QObject::connect(watcher_, &QFileSystemWatcher::directoryChanged, [=](QString path) { //FIXME: Temporary disabling watch on the dir because of double add
Q_UNUSED(path) // QObject::connect(watcher_, &QFileSystemWatcher::directoryChanged, [=](QString path) {
QtConcurrent::run(this, &WindowsContactBackend::loadRun); // Q_UNUSED(path)
}); // QtConcurrent::run(this, &WindowsContactBackend::loadRun);
// });
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment