Find another way to ignore the csync journal from the file watcher

This commit is contained in:
Olivier Goffart 2014-02-04 16:45:43 +01:00
parent 8711cf07af
commit 4ade023b96

View file

@ -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