1
0
Fork 0

Launcher: exit/quit item on non-Mac

(Mac gets one automatically)
This commit is contained in:
James Turner 2017-04-13 13:01:29 +01:00
parent 5f8f2886dc
commit ac38f29ae3

View file

@ -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,