Fix syncing folder with nothing in it

Do the start after connecting, as the finish may be imediate if there
is nothing to do.
This commit is contained in:
Olivier Goffart 2013-10-31 12:11:56 +01:00
parent bdc39f9cc2
commit f0a1ac4346

View file

@ -881,10 +881,10 @@ void OwncloudPropagator::start(const SyncFileItemVector& _syncedItems)
_rootJob->append(it);
}
_rootJob->start();
connect(_rootJob.data(), SIGNAL(completed(SyncFileItem)), this, SIGNAL(completed(SyncFileItem)));
connect(_rootJob.data(), SIGNAL(progress(Progress::Kind,QString,quint64,quint64)), this, SIGNAL(progress(Progress::Kind,QString,quint64,quint64)));
connect(_rootJob.data(), SIGNAL(finished(SyncFileItem::Status)), this, SIGNAL(finished()));
_rootJob->start();
}
void PropagateDirectory::proceedNext(SyncFileItem::Status status)