# HG changeset patch # User Chris Cannam # Date 1409583328 -3600 # Node ID 8b51bfe70625ac0eb04dec991ff49162ac5d8c2c # Parent e546e22614701a7b2c5493cf10b07cb39213e098 Fix #1039 (Menu bar missing, under Ubuntu with Gnome 3) diff -r e546e2261470 -r 8b51bfe70625 main/MainWindow.cpp --- a/main/MainWindow.cpp Mon Sep 01 13:37:22 2014 +0100 +++ b/main/MainWindow.cpp Mon Sep 01 15:55:28 2014 +0100 @@ -337,6 +337,17 @@ MainWindow::setupMenus() { if (!m_mainMenusCreated) { + +#ifdef Q_OS_LINUX + // In Ubuntu 14.04 the window's menu bar goes missing entirely + // if the user is running any desktop environment other than Unity + // (in which the faux single-menubar appears). The user has a + // workaround, to remove the appmenu-qt5 package, but that is + // awkward and the problem is so severe that it merits disabling + // the system menubar integration altogether. Like this: + menuBar()->setNativeMenuBar(false); // fix #1039 +#endif + m_rightButtonMenu = new QMenu(); // No -- we don't want tear-off enabled on the right-button