mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-26 01:31:30 -05:00
always show empty groups in FriendList so that they still can be deleted
This commit is contained in:
parent
dbd6477acd
commit
d5d0314940
@ -134,14 +134,8 @@ public:
|
|||||||
|
|
||||||
QModelIndex index = sourceModel()->index(source_row,0,source_parent);
|
QModelIndex index = sourceModel()->index(source_row,0,source_parent);
|
||||||
|
|
||||||
if(index.data(RsFriendListModel::TypeRole) == RsFriendListModel::ENTRY_TYPE_GROUP)
|
if(index.data(RsFriendListModel::TypeRole) == RsFriendListModel::ENTRY_TYPE_GROUP) // always show groups, so we can delete them even when empty
|
||||||
{
|
return true;
|
||||||
RsGroupInfo group_info ;
|
|
||||||
static_cast<RsFriendListModel*>(sourceModel())->getGroupData(index,group_info);
|
|
||||||
|
|
||||||
if(group_info.peerIds.empty())
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Filter offline friends
|
// Filter offline friends
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user