[Pkg-owncloud-commits] [owncloud-client] 09/83: Show the sync icon in case the status is not yet defined.

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat May 31 11:31:38 UTC 2014


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 d0b9b002e4f1a731ac35110732a7cd2427076215
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed May 7 17:37:08 2014 +0200

    Show the sync icon in case the status is not yet defined.
    
    This fixes the problem that on the first sync, no proper status icon is
    shown on a potential long update phase.
---
 src/mirall/accountsettings.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mirall/accountsettings.cpp b/src/mirall/accountsettings.cpp
index ee3efcc..c3793b0 100644
--- a/src/mirall/accountsettings.cpp
+++ b/src/mirall/accountsettings.cpp
@@ -268,6 +268,10 @@ void AccountSettings::folderToModelItem( QStandardItem *item, Folder *f )
                 // if the folder was disabled before, set the sync icon
                 item->setData( theme->syncStateIcon( SyncResult::SyncRunning), FolderStatusDelegate::FolderStatusIconRole );
             }  // we keep the previous icon for the SyncPrepare state.
+        } else if( status == SyncResult::Undefined ) {
+            // startup, the sync was never done.
+            qDebug() << "XXX FIRST time sync, setting icon to sync running!";
+            item->setData( theme->syncStateIcon( SyncResult::SyncRunning), FolderStatusDelegate::FolderStatusIconRole );
         } else {
             // kepp the previous icon for the prepare phase.
             if( status == SyncResult::Problem) {

-- 
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