Merge branch 'master' into rename_client

Conflicts:
	README.md
	src/gui/folderman.cpp
	src/gui/settingsdialog.cpp
	src/libsync/accessmanager.cpp
	src/libsync/propagateupload.h
Esse commit está contido em:
Daniel Molkentin
2014-12-02 13:37:22 +01:00
111 arquivos alterados com 3892 adições e 2583 exclusões
+6 -7
Ver Arquivo
@@ -159,23 +159,22 @@ void FolderWatcherPrivate::slotReceivedNotification(int fd)
while(i + sizeof(struct inotify_event) < static_cast<unsigned int>(len)) {
// cast an inotify_event
event = (struct inotify_event*)&buffer[i];
// with the help of watch descriptor, retrieve, corresponding INotify
if (event == NULL) {
qDebug() << "NULL event";
i += sizeof(struct inotify_event);
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);
}
}