mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
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:
parent
9193286fc1
commit
983f9c5dde
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ bool PropagateItemJob::checkForProblemsWithShared(int httpStatusCode, const QStr
|
||||||
_restoreJob.reset(newJob);
|
_restoreJob.reset(newJob);
|
||||||
connect(_restoreJob.data(), SIGNAL(completed(SyncFileItem)),
|
connect(_restoreJob.data(), SIGNAL(completed(SyncFileItem)),
|
||||||
this, SLOT(slotRestoreJobCompleted(SyncFileItem)));
|
this, SLOT(slotRestoreJobCompleted(SyncFileItem)));
|
||||||
_restoreJob->start();
|
QMetaObject::invokeMethod(newJob, "start");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue