moved endResetModel() call to the endof internal data update in RsFriendListModel

This commit is contained in:
csoler 2023-09-19 15:10:29 +02:00
parent 0e0430a222
commit 11c07cd7c3

View File

@ -1145,8 +1145,6 @@ void RsFriendListModel::updateInternalData()
mLocations.clear();
mTopLevel.clear();
endResetModel();
auto TL = mTopLevel ; // This allows to fill TL without touching mTopLevel outside of [begin/end]InsertRows().
// create a map of profiles and groups
@ -1282,7 +1280,8 @@ void RsFriendListModel::updateInternalData()
endInsertRows();
}
postMods();
endResetModel();
postMods();
mLastInternalDataUpdate = time(NULL);
}