mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix crash in emoji color picker.
This commit is contained in:
@@ -628,6 +628,13 @@ void EmojiListWidget::applyNextSearchQuery() {
|
||||
const auto modeChanged = (_searchMode != searching);
|
||||
clearSelection();
|
||||
if (modeChanged) {
|
||||
if (_picker) {
|
||||
_picker->hideAnimated();
|
||||
}
|
||||
_colorAllRipple = nullptr;
|
||||
for (auto &set : _custom) {
|
||||
set.ripple = nullptr;
|
||||
}
|
||||
_searchMode = searching;
|
||||
}
|
||||
if (!searching) {
|
||||
|
Reference in New Issue
Block a user