[Pkg-owncloud-commits] [owncloud-client] 242/498: Progress UI: Properly reset bar after a sync.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 030d1e636b3e29c9f12a33b7a6053a6c3dbcfec3
Author: Christian Kamm <kamm at incasoftware.de>
Date:   Fri Jul 3 11:26:03 2015 +0200

    Progress UI: Properly reset bar after a sync.
---
 src/gui/folderstatusmodel.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index 23d7bd7..0da7da8 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -704,7 +704,10 @@ void FolderStatusModel::slotFolderSyncStateChange()
     if (folderIndex < 0) { return; }
 
     SyncResult::Status state = f->syncResult().status();
-    if (state == SyncResult::SyncPrepare)  {
+    if (state == SyncResult::SyncPrepare
+            || state == SyncResult::Problem
+            || state == SyncResult::Success)  {
+        // Reset the progress info before and after a sync.
         _folders[folderIndex]._progress = SubFolderInfo::Progress();
     } else if (state == SyncResult::Error) {
         _folders[folderIndex]._progress._progressString = f->syncResult().errorString();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list