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:
Diffstat (limited to 'src/mirall/inotify.cpp')
-rw-r--r--src/mirall/inotify.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mirall/inotify.cpp b/src/mirall/inotify.cpp
index 57c4e2424..091f7ff4f 100644
--- a/src/mirall/inotify.cpp
+++ b/src/mirall/inotify.cpp
@@ -50,8 +50,6 @@ void INotify::addPath(const QString &path)
qDebug() << path;
path.toAscii().constData();
- return;
-
int wd = inotify_add_watch(s_fd, path.toAscii().constData(), _mask);
_wds[path] = wd;
@@ -64,6 +62,7 @@ void INotify::removePath(const QString &path)
{
// Remove the inotify watch.
inotify_rm_watch(s_fd, _wds[path]);
+ _wds.remove(path);
}
QStringList INotify::directories() const