mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-25 19:01:21 -04:00
Check for isVisible() instead of isNativeMenuBar() to make global menu hack work with appmenu-qt5, follow-up fix for #271
This commit is contained in:
parent
7a344930ec
commit
5bb6c4d9e4
1 changed files with 2 additions and 1 deletions
|
@ -745,7 +745,8 @@ void MainWindow::toggleWindow()
|
||||||
// re-register global D-Bus menu (needed on Ubuntu with Unity)
|
// re-register global D-Bus menu (needed on Ubuntu with Unity)
|
||||||
// see https://github.com/keepassxreboot/keepassxc/issues/271
|
// see https://github.com/keepassxreboot/keepassxc/issues/271
|
||||||
// and https://bugreports.qt.io/browse/QTBUG-58723
|
// and https://bugreports.qt.io/browse/QTBUG-58723
|
||||||
if (m_ui->menubar->isNativeMenuBar()) {
|
// check for !isVisible(), because isNativeMenuBar() does not work with appmenu-qt5
|
||||||
|
if (!m_ui->menubar->isVisible()) {
|
||||||
QDBusMessage msg = QDBusMessage::createMethodCall(
|
QDBusMessage msg = QDBusMessage::createMethodCall(
|
||||||
"com.canonical.AppMenu.Registrar",
|
"com.canonical.AppMenu.Registrar",
|
||||||
"/com/canonical/AppMenu/Registrar",
|
"/com/canonical/AppMenu/Registrar",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue