[Pkg-owncloud-commits] [owncloud-client] 231/484: ActivityListModel: Check if the account is connected when fetching more.

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:46 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 6c6ee358d4102582cfafc8c4e396da994f36d923
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Mon Nov 2 16:39:33 2015 +0100

    ActivityListModel: Check if the account is connected when fetching more.
---
 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 f87faa0..544f032 100644
--- a/src/gui/activitywidget.cpp
+++ b/src/gui/activitywidget.cpp
@@ -92,8 +92,10 @@ bool ActivityListModel::canFetchMore(const QModelIndex& ) const
 
     QMap<AccountStatePtr, ActivityList>::const_iterator i = _activityLists.begin();
     while (i != _activityLists.end()) {
-        if( i.value().count() == 0 &&
-                ! _currentlyFetching.contains(i.key())) {
+        AccountStatePtr ast = i.key();
+        ActivityList activities = i.value();
+        if( ast->isConnected() && activities.count() == 0 &&
+                ! _currentlyFetching.contains(ast) ) {
             return true;
         }
         ++i;

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