fixed bug causing some GxsGroupFrameDialog not to show content

This commit is contained in:
csoler 2020-04-06 22:11:32 +02:00
parent 5c71a46c52
commit bddd90df43
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -182,7 +182,9 @@ void GxsGroupFrameDialog::showEvent(QShowEvent *event)
initUi();
}
bool empty = mCachedGroupMetas.empty();
uint32_t children = mYourGroups->childCount() + mSubscribedGroups->childCount() + mPopularGroups->childCount() + mOtherGroups->childCount();
bool empty = mCachedGroupMetas.empty() || children==0;
updateDisplay( empty );
}