# HG changeset patch # User Chris Cannam # Date 1409584335 -3600 # Node ID 93d63e69b1817b4236e83e3e192e02241253a6b9 # Parent d7d828d2b2a52df05d0dad4516a362eff46a29e7 Workaround for disappearing menubar under Ubuntu diff -r d7d828d2b2a5 -r 93d63e69b181 src/MainWindow.cpp --- a/src/MainWindow.cpp Tue Jul 22 15:43:47 2014 +0100 +++ b/src/MainWindow.cpp Mon Sep 01 16:12:15 2014 +0100 @@ -425,6 +425,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); +#endif + m_rightButtonMenu = new QMenu(); }