2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Fix crash on right clicking emoji button with third column

This commit is contained in:
RadRussianRus
2021-04-19 00:11:33 +03:00
parent 60ab760d39
commit 1d1676de2e
2 changed files with 2 additions and 2 deletions

View File

@@ -1018,7 +1018,7 @@ void HistoryWidget::initTabbedSelector() {
});
base::install_event_filter(_tabbedSelectorToggle, [=](not_null<QEvent*> e) {
if (e->type() == QEvent::ContextMenu && !HoverEmojiPanel()) {
if (e->type() == QEvent::ContextMenu && !HoverEmojiPanel() && _tabbedPanel) {
_tabbedPanel->toggleAnimated();
return base::EventFilterResult::Cancel;
}

View File

@@ -1498,7 +1498,7 @@ void ComposeControls::initTabbedSelector() {
}
base::install_event_filter(_tabbedSelectorToggle, [=](not_null<QEvent*> e) {
if (e->type() == QEvent::ContextMenu && !HoverEmojiPanel()) {
if (e->type() == QEvent::ContextMenu && !HoverEmojiPanel() && _tabbedPanel) {
_tabbedPanel->toggleAnimated();
return base::EventFilterResult::Cancel;
}