From: Jocelyn Turcotte Date: Mon, 4 Jan 2016 15:46:53 +0000 (+0100) Subject: Fix a missing sync-exclude.lst file not failing the sync X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1254^2~118 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2e7a3f9e379ab237105116f6bcf50df269baf62f;p=nextcloud-desktop.git Fix a missing sync-exclude.lst file not failing the sync After c3cf6aef7dbafb9133903b52c5919eccd4821a25 the invokeMethod calls should be adjusted to pass the new method arguments. The result was currently a passing sync with this error message on the console: QMetaObject::invokeMethod: No such method OCC::Folder::slotSyncFinished() --- diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 2946d1978..4f262c232 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -860,7 +860,7 @@ void Folder::startSync(const QStringList &pathList) if (!_csync_ctx) { qDebug() << Q_FUNC_INFO << "init failed."; // the error should already be set - QMetaObject::invokeMethod(this, "slotSyncFinished", Qt::QueuedConnection); + QMetaObject::invokeMethod(this, "slotSyncFinished", Qt::QueuedConnection, Q_ARG(bool, false)); return; } } else if (proxyDirty()) { @@ -888,7 +888,7 @@ void Folder::startSync(const QStringList &pathList) if (! setIgnoredFiles()) { slotSyncError(tr("Could not read system exclude file")); - QMetaObject::invokeMethod(this, "slotSyncFinished", Qt::QueuedConnection); + QMetaObject::invokeMethod(this, "slotSyncFinished", Qt::QueuedConnection, Q_ARG(bool, false)); return; }