fixed removal of profiles from groupless list when the profile is in a group

This commit is contained in:
csoler 2019-08-15 15:54:16 +02:00
parent 9686fc5546
commit 9d696f56bc
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 4 additions and 0 deletions

View File

@ -1020,6 +1020,9 @@ void RsFriendListModel::updateInternalData()
e.group_index = i;
mTopLevel.push_back(e);
for(uint32_t j=0;j<mGroups[i].child_profile_indices.size();++j)
already_in_a_group.insert(mProfiles[mGroups[i].child_profile_indices[j]].profile_info.gpg_id);
}
}

View File

@ -408,6 +408,7 @@ void NewFriendList::toggleSortByState(bool sort)
{
mProxyModel->setSortByState(sort);
mProxyModel->setFilterRegExp(QRegExp(QString(RsFriendListModel::FilterString))) ;// triggers a re-display.
processSettings(false);
}
void NewFriendList::changeEvent(QEvent *e)