[Pkg-owncloud-commits] [owncloud-client] 350/484: ActivityWidget: No progress indic. for non connected accounts.

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:38:03 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 5ec4fd94e0120db675bc04de404587438c850d67
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Tue Nov 17 15:05:54 2015 +0100

    ActivityWidget: No progress indic. for non connected accounts.
---
 src/gui/activitywidget.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp
index 847e95a..4052f37 100644
--- a/src/gui/activitywidget.cpp
+++ b/src/gui/activitywidget.cpp
@@ -418,8 +418,10 @@ void ActivitySettings::slotRemoveAccount( AccountState *ptr )
 
 void ActivitySettings::slotRefresh( AccountState* ptr )
 {
-    _progressIndicator->startAnimation();
-    _activityWidget->slotRefresh(ptr);
+    if( ptr && ptr->isConnected() ) {
+        _progressIndicator->startAnimation();
+        _activityWidget->slotRefresh(ptr);
+    }
 }
 
 ActivitySettings::~ActivitySettings()

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