Mercurial > hg > easyhg
diff src/mainwindow.cpp @ 666:98a7fbbe9d88 qt5
Merge from default branch, and build fixes
author | Chris Cannam |
---|---|
date | Fri, 27 May 2016 09:55:56 +0100 |
parents | cfe684675e81 |
children | ce29dc775650 |
line wrap: on
line diff
--- a/src/mainwindow.cpp Thu Mar 14 16:43:30 2013 +0000 +++ b/src/mainwindow.cpp Fri May 27 09:55:56 2016 +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);