Fix a missing sync-exclude.lst file not failing the sync
authorJocelyn Turcotte <jturcotte@woboq.com>
Mon, 4 Jan 2016 15:46:53 +0000 (16:46 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Mon, 4 Jan 2016 16:01:21 +0000 (17:01 +0100)
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

index 2946d19782d2f78598bfdad7a001458fe171d9c9..4f262c232566417b7aa0a21753fd747c1d3a9c12 100644 (file)
@@ -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;
     }