mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-24 15:05:35 -04:00
use queued connections for notification signals in friend list, added a call to begin/endResetModel()
This commit is contained in:
parent
4d96c71942
commit
15e6947b07
4 changed files with 25 additions and 18 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue