Restrict global menu fix to Qt < 5.9.0, resolves #691

This commit is contained in:
Janek Bevendorff 2017-10-24 15:07:10 +02:00
parent f6933a8868
commit 05d02b702a

View File

@ -881,7 +881,7 @@ void MainWindow::toggleWindow()
raise();
activateWindow();
#if defined(Q_OS_LINUX) && ! defined(QT_NO_DBUS)
#if defined(Q_OS_LINUX) && ! defined(QT_NO_DBUS) && (QT_VERSION < QT_VERSION_CHECK(5, 9, 0))
// re-register global D-Bus menu (needed on Ubuntu with Unity)
// see https://github.com/keepassxreboot/keepassxc/issues/271
// and https://bugreports.qt.io/browse/QTBUG-58723