mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Fix crash on right clicking emoji button with third column
This commit is contained in:
@@ -1018,7 +1018,7 @@ void HistoryWidget::initTabbedSelector() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
base::install_event_filter(_tabbedSelectorToggle, [=](not_null<QEvent*> e) {
|
base::install_event_filter(_tabbedSelectorToggle, [=](not_null<QEvent*> e) {
|
||||||
if (e->type() == QEvent::ContextMenu && !HoverEmojiPanel()) {
|
if (e->type() == QEvent::ContextMenu && !HoverEmojiPanel() && _tabbedPanel) {
|
||||||
_tabbedPanel->toggleAnimated();
|
_tabbedPanel->toggleAnimated();
|
||||||
return base::EventFilterResult::Cancel;
|
return base::EventFilterResult::Cancel;
|
||||||
}
|
}
|
||||||
|
@@ -1498,7 +1498,7 @@ void ComposeControls::initTabbedSelector() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
base::install_event_filter(_tabbedSelectorToggle, [=](not_null<QEvent*> e) {
|
base::install_event_filter(_tabbedSelectorToggle, [=](not_null<QEvent*> e) {
|
||||||
if (e->type() == QEvent::ContextMenu && !HoverEmojiPanel()) {
|
if (e->type() == QEvent::ContextMenu && !HoverEmojiPanel() && _tabbedPanel) {
|
||||||
_tabbedPanel->toggleAnimated();
|
_tabbedPanel->toggleAnimated();
|
||||||
return base::EventFilterResult::Cancel;
|
return base::EventFilterResult::Cancel;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user