From 194bda283393c6ec36337495035208938ef778d6 Mon Sep 17 00:00:00 2001
From: Edric Milaret <edric.ladent-milaret@savoirfairelinux.com>
Date: Fri, 7 Aug 2015 16:51:35 -0400
Subject: [PATCH] contact: temp disabling of directory watcher because of 2x
 add

Issue: #78823
Change-Id: I4d969b2f00a23473ac95750a116cdb01f332f7ad
---
 windowscontactbackend.cpp | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/windowscontactbackend.cpp b/windowscontactbackend.cpp
index e968a6d..a3572ef 100644
--- a/windowscontactbackend.cpp
+++ b/windowscontactbackend.cpp
@@ -222,10 +222,11 @@ WindowsContactBackend::load()
     QtConcurrent::run(this, &WindowsContactBackend::loadRun);
     watcher_->addPath(QStandardPaths::writableLocation
                       (QStandardPaths::HomeLocation) + "/Contacts");
-    QObject::connect(watcher_, &QFileSystemWatcher::directoryChanged, [=](QString path) {
-        Q_UNUSED(path)
-        QtConcurrent::run(this, &WindowsContactBackend::loadRun);
-    });
+//FIXME: Temporary disabling watch on the dir because of double add
+//    QObject::connect(watcher_, &QFileSystemWatcher::directoryChanged, [=](QString path) {
+//        Q_UNUSED(path)
+//        QtConcurrent::run(this, &WindowsContactBackend::loadRun);
+//    });
     return true;
 }
 
-- 
GitLab