mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 06:07:45 +00:00
Fix crash on right clicking emoji button with third column
This commit is contained in:
parent
60ab760d39
commit
1d1676de2e
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user