Signed-off-by: alex-z <blackslayer4@gmail.com>
{
Q_ASSERT(std::is_sorted(items.begin(), items.end()));
+ _abortRequested = false;
+
/* This builds all the jobs needed for the propagation.
* Each directory is a PropagateDirectory job, which contains the files in it.
* In order to do that we loop over the items. (which are sorted by destination)
{
if (_abortRequested)
return;
+
+ _abortRequested = true;
if (_rootJob) {
// Connect to abortFinished which signals that abort has been asynchronously finished
connect(_rootJob.data(), &PropagateDirectory::abortFinished, this, &OwncloudPropagator::emitFinished);
{
if (!_finishedEmited)
emit finished(status == SyncFileItem::Success);
+ _abortRequested = false;
_finishedEmited = true;
}