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:
authorChristian Kamm <kamm@incasoftware.de>2014-11-07 12:14:09 +0300
committerChristian Kamm <kamm@incasoftware.de>2014-11-20 14:42:59 +0300
commit1ada20ac7b50e5480036c9906199219df13328f4 (patch)
tree170adf3c8249cb606bb38c077e04155e57f0deec /src/gui/folderwatcher_linux.cpp
parentd04eedeb8d0ead5781c5567edd8dda7af1ad519a (diff)
Linux folderwatcher: Get full path of changed file. #2297
Diffstat (limited to 'src/gui/folderwatcher_linux.cpp')
-rw-r--r--src/gui/folderwatcher_linux.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/folderwatcher_linux.cpp b/src/gui/folderwatcher_linux.cpp
index 4d75047dc..61321f9d3 100644
--- a/src/gui/folderwatcher_linux.cpp
+++ b/src/gui/folderwatcher_linux.cpp
@@ -166,16 +166,16 @@ void FolderWatcherPrivate::slotReceivedNotification(int fd)
continue;
}
- // fire event
- // Note: The name of the changed file and stuff could be taken from
- // the event data structure. That does not happen yet.
+ // Fire event for the path that was changed.
if (event->len > 0 && event->wd > -1) {
+ QByteArray fileName(event->name);
// qDebug() << Q_FUNC_INFO << event->name;
- if (QByteArray(event->name).startsWith(".csync") ||
- QByteArray(event->name).startsWith(".owncloudsync.log")) {
+ if (fileName.startsWith(".csync_journal.db") ||
+ fileName.startsWith(".owncloudsync.log")) {
// qDebug() << "ignore journal";
} else {
- const QString p = _watches[event->wd];
+ const QString p = _watches[event->wd] + '/' + fileName;
+ //qDebug() << "found a change in " << p;
_parent->changeDetected(p);
}
}