From 2e7a3f9e379ab237105116f6bcf50df269baf62f Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Mon, 4 Jan 2016 16:46:53 +0100 Subject: [PATCH] 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() --- src/gui/folder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2