Mercurial > hg > sonic-visualiser
changeset 779:8b51bfe70625
Fix #1039 (Menu bar missing, under Ubuntu with Gnome 3)
author | Chris Cannam |
---|---|
date | Mon, 01 Sep 2014 15:55:28 +0100 |
parents | e546e2261470 |
children | 128a09e7e38e |
files | main/MainWindow.cpp |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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