Skip to content

Commit

Permalink
Emit finished signal if a sync was aborted
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Nov 23, 2023
1 parent 0fce29c commit 6dbb9cd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/libsync/syncengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,13 +867,11 @@ void SyncEngine::abort()
// Delete the discovery and all child jobs after ensuring
// it can't finish and start the propagator
disconnect(_discoveryPhase.get(), nullptr, this, nullptr);
_discoveryPhase.release()->deleteLater();

if (!_goingDown) {
Q_EMIT syncError(tr("Aborted"));
}
finalize(false);
}
if (!_goingDown) {
Q_EMIT syncError(tr("Aborted"));
}
finalize(false);
}

void SyncEngine::slotSummaryError(const QString &message)
Expand Down

0 comments on commit 6dbb9cd

Please sign in to comment.