mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
ActivityListModel: Check if the account is connected when fetching more.
This commit is contained in:
parent
060f4f291b
commit
6c6ee358d4
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue