[Pkg-owncloud-commits] [owncloud-client] 96/103: The job restore job need to be run with QMetaObject::invoke

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Apr 30 18:09:03 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 983f9c5dde95888e4669f4da42981d3eda5011fd
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Tue Apr 29 16:56:19 2014 +0200

    The job restore job need to be run with QMetaObject::invoke
    
    Because the job might be in a different thread.
---
 src/mirall/owncloudpropagator.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mirall/owncloudpropagator.cpp b/src/mirall/owncloudpropagator.cpp
index 66c6884..9f29644 100644
--- a/src/mirall/owncloudpropagator.cpp
+++ b/src/mirall/owncloudpropagator.cpp
@@ -129,7 +129,7 @@ bool PropagateItemJob::checkForProblemsWithShared(int httpStatusCode, const QStr
             _restoreJob.reset(newJob);
             connect(_restoreJob.data(), SIGNAL(completed(SyncFileItem)),
                     this, SLOT(slotRestoreJobCompleted(SyncFileItem)));
-            _restoreJob->start();
+            QMetaObject::invokeMethod(newJob, "start");
         }
         return true;
     }

-- 
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