]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Ensure the 'Sync paused' state is used after pausing #5290
authorChristian Kamm <mail@ckamm.de>
Tue, 29 Nov 2016 08:56:45 +0000 (09:56 +0100)
committerChristian Kamm <mail@ckamm.de>
Tue, 29 Nov 2016 08:56:45 +0000 (09:56 +0100)
src/gui/folder.cpp

index 8b44c1b32c9806bc21b54d6fbe400b68537b94a5..37721789e9a8bd198a6299d47a32a9eba09f9857 100644 (file)
@@ -808,6 +808,9 @@ void Folder::slotSyncFinished(bool success)
     } else if( _syncResult.warnCount() > 0 ) {
         // there have been warnings on the way.
         _syncResult.setStatus(SyncResult::Problem);
+    } else if( _definition.paused ) {
+        // Maybe the sync was terminated because the user paused the folder
+        _syncResult.setStatus(SyncResult::Paused);
     } else {
         _syncResult.setStatus(SyncResult::Success);
     }