2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Fix crash in emoji color picker.

This commit is contained in:
John Preston
2025-02-05 13:50:27 +04:00
parent 8912d4d55a
commit 7f6e871b26

View File

@@ -628,6 +628,13 @@ void EmojiListWidget::applyNextSearchQuery() {
const auto modeChanged = (_searchMode != searching); const auto modeChanged = (_searchMode != searching);
clearSelection(); clearSelection();
if (modeChanged) { if (modeChanged) {
if (_picker) {
_picker->hideAnimated();
}
_colorAllRipple = nullptr;
for (auto &set : _custom) {
set.ripple = nullptr;
}
_searchMode = searching; _searchMode = searching;
} }
if (!searching) { if (!searching) {