Merge pull request #2901 from thunder2/fix_missing_premods

Added missing calls to preMods in RsFriendListModel::setDisplayStatus…
This commit is contained in:
csoler 2024-12-27 19:59:09 +01:00 committed by GitHub
commit ca2f8c5bed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,12 +162,14 @@ static QIcon createAvatar(const QPixmap &avatar, const QPixmap &overlay)
void RsFriendListModel::setDisplayStatusString(bool b) void RsFriendListModel::setDisplayStatusString(bool b)
{ {
preMods();
mDisplayStatusString = b; mDisplayStatusString = b;
postMods(); postMods();
} }
void RsFriendListModel::setDisplayStatusIcon(bool b) void RsFriendListModel::setDisplayStatusIcon(bool b)
{ {
preMods();
mDisplayStatusIcon = b; mDisplayStatusIcon = b;
postMods(); postMods();
} }