The job restore job need to be run with QMetaObject::invoke

Because the job might be in a different thread.
This commit is contained in:
Olivier Goffart 2014-04-29 16:56:19 +02:00
parent 9193286fc1
commit 983f9c5dde

View file

@ -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;
}