Skip to content

Commit

Permalink
fix: Show actual smileys in the smileypack selector.
Browse files Browse the repository at this point in the history
Right now it's showing the last few elements of the smiley list, which
is some countries flags. We should show the first ones, which is faces.
  • Loading branch information
iphydf committed Dec 11, 2024
1 parent 4b1a586 commit 97bc8fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/widget/form/settings/userinterfaceform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,14 @@ void UserInterfaceForm::reloadSmileys()

// sometimes there are no emoticons available, don't crash in this case
if (emoticons.isEmpty()) {
qDebug() << "reloadSmilies: No emoticons found";
qDebug() << "reloadSmileys: No emoticons found";
return;
}

QStringList smileys;
for (int i = 0; i < emoticons.size(); ++i)
smileys.push_front(emoticons.at(i).first());
for (const auto& emoticon : emoticons) {
smileys.push_back(emoticon.first());
}

emoticonsIcons.clear();
const QSize size(18, 18);
Expand Down

0 comments on commit 97bc8fc

Please sign in to comment.