From 2f9e385fcadc7b1d6a33d977403cd5a320c9afc5 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Wed, 5 Mar 2014 12:57:12 -0800 Subject: [PATCH] Don't use native menu bar on Linux Fixes Issue #542 --- src/ui/MainWindow.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index 80b6814..f6b71c5 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -187,6 +187,11 @@ void MainWindow::init() ui.setupUi(this); hide(); menuActionHelper->setMenu(ui.menuTools); + + // Qt 4 on Ubuntu does place the native menubar correctly so on Linux we revert back to in-window menu bar. +#ifdef Q_OS_LINUX + menuBar()->setNativeMenuBar(false); +#endif // We only need this menu if we have more than one system // ui.menuConnected_Systems->setEnabled(false);