always show empty groups in FriendList so that they still can be deleted

This commit is contained in:
csoler 2020-12-05 20:50:36 +01:00
parent dbd6477acd
commit d5d0314940

View File

@ -134,14 +134,8 @@ public:
QModelIndex index = sourceModel()->index(source_row,0,source_parent);
if(index.data(RsFriendListModel::TypeRole) == RsFriendListModel::ENTRY_TYPE_GROUP)
{
RsGroupInfo group_info ;
static_cast<RsFriendListModel*>(sourceModel())->getGroupData(index,group_info);
if(group_info.peerIds.empty())
return false;
}
if(index.data(RsFriendListModel::TypeRole) == RsFriendListModel::ENTRY_TYPE_GROUP) // always show groups, so we can delete them even when empty
return true;
// Filter offline friends