diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2014-02-04 19:45:43 +0400 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2014-02-04 19:46:14 +0400 |
commit | 4ade023b96ef3ed0a07c2fda12da2c230e552d34 (patch) | |
tree | 0da8296912b2726be49cb055526e1342207121cb | |
parent | 8711cf07af2d0d807f6874cefffb2e40b8ff3fe8 (diff) |
Find another way to ignore the csync journal from the file watcherv1.5.1-rc1
-rw-r--r-- | src/mirall/folderwatcher_linux.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mirall/folderwatcher_linux.cpp b/src/mirall/folderwatcher_linux.cpp index 6f008201d..a8d522e9b 100644 --- a/src/mirall/folderwatcher_linux.cpp +++ b/src/mirall/folderwatcher_linux.cpp @@ -173,7 +173,13 @@ void FolderWatcherPrivate::slotReceivedNotification(int fd) // Note: The name of the changed file and stuff could be taken from // the event data structure. That does not happen yet. if (event->len > 0 && event->wd > -1) { - _parent->changeDetected(QString::fromLocal8Bit(event->name)); + qDebug() << Q_FUNC_INFO << event->name; + if (QByteArray(event->name).startsWith(".csync")) { + qDebug() << "ignore journal"; + } else { + const QString p = _watches[event->wd]; + _parent->changeDetected(p); + } } // increment counter |