use queued connections for notification signals in friend list, added a call to begin/endResetModel()

This commit is contained in:
csoler 2019-08-30 13:57:27 +02:00
parent 4d96c71942
commit 15e6947b07
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
4 changed files with 25 additions and 18 deletions

View file

@ -151,9 +151,12 @@ void RsFriendListModel::setDisplayGroups(bool b)
void RsFriendListModel::preMods()
{
emit layoutAboutToBeChanged();
beginResetModel();
}
void RsFriendListModel::postMods()
{
endResetModel();
emit layoutChanged();
emit dataChanged(createIndex(0,0,(void*)NULL), createIndex(mTopLevel.size()-1,COLUMN_THREAD_NB_COLUMNS-1,(void*)NULL));
}