From ac38f29ae3c61b596a76c9de8c784ba0ea1d9d16 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 13 Apr 2017 13:01:29 +0100 Subject: [PATCH] Launcher: exit/quit item on non-Mac (Mac gets one automatically) --- src/GUI/LauncherMainWindow.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/GUI/LauncherMainWindow.cxx b/src/GUI/LauncherMainWindow.cxx index 5002bc228..0d07dc752 100644 --- a/src/GUI/LauncherMainWindow.cxx +++ b/src/GUI/LauncherMainWindow.cxx @@ -115,6 +115,15 @@ LauncherMainWindow::LauncherMainWindow() : m_ui->setupUi(this); QMenuBar* mb = menuBar(); + +#if !defined(Q_OS_MAC) + QMenu* fileMenu = mb->addMenu(tr("File")); + QAction* quitAction = fileMenu->addAction(tr("Exit")); + connect(quitAction, &QAction::triggered, + this, &LauncherMainWindow::onQuit); + +#endif + QMenu* toolsMenu = mb->addMenu(tr("Tools")); QAction* restoreDefaultsAction = toolsMenu->addAction(tr("Restore defaults...")); connect(restoreDefaultsAction, &QAction::triggered,