mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-26 07:55:44 -04:00
moved endResetModel() call to the endof internal data update in RsFriendListModel
This commit is contained in:
parent
0e0430a222
commit
11c07cd7c3
1 changed files with 2 additions and 3 deletions
|
@ -1145,8 +1145,6 @@ void RsFriendListModel::updateInternalData()
|
||||||
mLocations.clear();
|
mLocations.clear();
|
||||||
mTopLevel.clear();
|
mTopLevel.clear();
|
||||||
|
|
||||||
endResetModel();
|
|
||||||
|
|
||||||
auto TL = mTopLevel ; // This allows to fill TL without touching mTopLevel outside of [begin/end]InsertRows().
|
auto TL = mTopLevel ; // This allows to fill TL without touching mTopLevel outside of [begin/end]InsertRows().
|
||||||
|
|
||||||
// create a map of profiles and groups
|
// create a map of profiles and groups
|
||||||
|
@ -1282,6 +1280,7 @@ void RsFriendListModel::updateInternalData()
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
endResetModel();
|
||||||
postMods();
|
postMods();
|
||||||
|
|
||||||
mLastInternalDataUpdate = time(NULL);
|
mLastInternalDataUpdate = time(NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue