[Pkg-owncloud-commits] [owncloud-client] 107/333: Call the start method assyncroniously

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 7cab77e8799d0e9249e2e3547d52ba96a8aa1ef1
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Thu Mar 6 21:01:08 2014 +0100

    Call the start method assyncroniously
    
    That was my intention, which is why i did not do a direct call to start.
    
    This should fix issue #1536
---
 src/mirall/csyncthread.cpp        | 2 +-
 src/mirall/owncloudpropagator.cpp | 2 +-
 src/mirall/owncloudpropagator.h   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mirall/csyncthread.cpp b/src/mirall/csyncthread.cpp
index efbefed..b2104c3 100644
--- a/src/mirall/csyncthread.cpp
+++ b/src/mirall/csyncthread.cpp
@@ -522,7 +522,7 @@ void CSyncThread::startSync()
     UpdateJob *job = new UpdateJob(_csync_ctx);
     job->moveToThread(&_thread);
     connect(job, SIGNAL(finished(int)), this, SLOT(slotUpdateFinished(int)));
-    QMetaObject::invokeMethod(job, "start");
+    QMetaObject::invokeMethod(job, "start", Qt::QueuedConnection);
 }
 
 void CSyncThread::slotUpdateFinished(int updateResult)
diff --git a/src/mirall/owncloudpropagator.cpp b/src/mirall/owncloudpropagator.cpp
index 23a6897..062dd93 100644
--- a/src/mirall/owncloudpropagator.cpp
+++ b/src/mirall/owncloudpropagator.cpp
@@ -227,7 +227,7 @@ void OwncloudPropagator::start(const SyncFileItemVector& _syncedItems)
             SIGNAL(progress(Progress::Kind,SyncFileItem,quint64,quint64)));
     connect(_rootJob.data(), SIGNAL(finished(SyncFileItem::Status)), this, SIGNAL(finished()));
 
-    QMetaObject::invokeMethod(_rootJob.data(), "start");
+    QMetaObject::invokeMethod(_rootJob.data(), "start", Qt::QueuedConnection);
 }
 
 void OwncloudPropagator::overallTransmissionSizeChanged(qint64 change)
diff --git a/src/mirall/owncloudpropagator.h b/src/mirall/owncloudpropagator.h
index b80d806..4ff6176 100644
--- a/src/mirall/owncloudpropagator.h
+++ b/src/mirall/owncloudpropagator.h
@@ -118,7 +118,7 @@ private slots:
         connect(next, SIGNAL(progress(Progress::Kind,SyncFileItem,quint64,quint64)), this, SIGNAL(progress(Progress::Kind,SyncFileItem,quint64,quint64)));
         connect(next, SIGNAL(ready()), this, SLOT(slotSubJobReady()));
         _runningNow++;
-        QMetaObject::invokeMethod(next, "start");
+        QMetaObject::invokeMethod(next, "start", Qt::QueuedConnection);
     }
 
     void slotSubJobFinished(SyncFileItem::Status status);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list