Mercurial > hg > easyhg
diff src/mainwindow.cpp @ 664:cfe684675e81
Workaround for disappearing menubar under Ubuntu
author | Chris Cannam |
---|---|
date | Mon, 01 Sep 2014 16:12:33 +0100 |
parents | 43c61fd6fea4 |
children | ce29dc775650 |
line wrap: on
line diff
--- a/src/mainwindow.cpp Fri Mar 01 09:20:11 2013 +0000 +++ b/src/mainwindow.cpp Mon Sep 01 16:12:33 2014 +0100 @@ -3048,6 +3048,16 @@ void MainWindow::createMenus() { +#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_fileMenu = menuBar()->addMenu(tr("&File")); m_fileMenu->addAction(m_openAct);