mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
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
This commit is contained in:
parent
feb49b2768
commit
7cab77e879
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue