diff options
Diffstat (limited to 'src/mirall/folderwatcher_inotify.cpp')
-rw-r--r-- | src/mirall/folderwatcher_inotify.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mirall/folderwatcher_inotify.cpp b/src/mirall/folderwatcher_inotify.cpp index f650b0fe7..a58fe332e 100644 --- a/src/mirall/folderwatcher_inotify.cpp +++ b/src/mirall/folderwatcher_inotify.cpp @@ -132,7 +132,16 @@ void FolderWatcherPrivate::slotINotifyEvent(int mask, int /*cookie*/, const QStr //qDebug() << cookie << " OTHER " << mask << " :" << path; } - foreach (const QString& pattern, _parent->ignores()) { + QStringList ignores = _parent->ignores(); + + if( path.endsWith(".csync_journal.db.ctmp") || + path.endsWith(".csync_journal.db.ctmp-journal") || + path.endsWith(".csync_journal.db")) { + qDebug() << " ** Inotify ignored for " <<path; + return; + } + + foreach (const QString& pattern, ignores) { QRegExp regexp(pattern); regexp.setPatternSyntax(QRegExp::Wildcard); |