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:
Olivier Goffart 2014-03-06 21:01:08 +01:00
parent feb49b2768
commit 7cab77e879
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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