Mercurial > hg > tony
diff src/MainWindow.cpp @ 385:93d63e69b181
Workaround for disappearing menubar under Ubuntu
author | Chris Cannam |
---|---|
date | Mon, 01 Sep 2014 16:12:15 +0100 |
parents | d7d828d2b2a5 |
children | 0649ac148bf7 |
line wrap: on
line diff
--- 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(); }