mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Find another way to ignore the csync journal from the file watcher
This commit is contained in:
parent
8711cf07af
commit
4ade023b96
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue