Propagator: If the sync was interrupted by pausing, do not show error.

Handle problems which happen because of pausing the sync as soft errors
rather than normal errors which are blacklisted and displayed in the
gui.

This fixes bug #1959
This commit is contained in:
Klaas Freitag 2014-08-19 14:14:01 +02:00
parent e4fe4cb4d3
commit 617887a0c6

View file

@ -53,6 +53,14 @@ void PropagateItemJob::done(SyncFileItem::Status status, const QString &errorStr
} else {
_item._errorString = errorString;
}
if( _propagator->_abortRequested.fetchAndAddRelaxed(0) ) {
// an abort request is ongoing. Change the status to Soft-Error
status = SyncFileItem::SoftError;
_item._errorString = tr("Operation was canceled by user interaction.");
}
_item._status = status;
// Blacklisting