mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-03 04:47:58 +00:00
Don't update global menu on Linux without focus widget
The window loses focus when menu is open and edit options are deactivated
This commit is contained in:
parent
4410aeb3eb
commit
4d997a26b0
@ -568,7 +568,9 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *evt) {
|
||||
if (qobject_cast<QLineEdit*>(obj)
|
||||
|| qobject_cast<QTextEdit*>(obj)
|
||||
|| dynamic_cast<HistoryInner*>(obj)) {
|
||||
updateGlobalMenu();
|
||||
if (QApplication::focusWidget()) {
|
||||
updateGlobalMenu();
|
||||
}
|
||||
}
|
||||
}
|
||||
return Window::MainWindow::eventFilter(obj, evt);
|
||||
|
Loading…
Reference in New Issue
Block a user