From 6c6ee358d4102582cfafc8c4e396da994f36d923 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 2 Nov 2015 16:39:33 +0100 Subject: [PATCH] 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 f87faa02f..544f03223 100644 --- a/src/gui/activitywidget.cpp +++ b/src/gui/activitywidget.cpp @@ -92,8 +92,10 @@ bool ActivityListModel::canFetchMore(const QModelIndex& ) const QMap::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;