Make shutdown disabled when a game is not running

This commit is contained in:
Jeffrey Pfau 2014-07-22 00:43:53 -07:00
parent 6403d531bd
commit 8ff6d77869
1 changed files with 5 additions and 1 deletions

View File

@ -160,7 +160,11 @@ void Window::setupMenu(QMenuBar* menubar) {
connect(reset, SIGNAL(triggered()), m_controller, SLOT(reset()));
m_gameActions.append(reset);
emulationMenu->addAction(reset);
emulationMenu->addAction(tr("Sh&utdown"), m_controller, SLOT(closeGame()));
QAction* shutdown = new QAction(tr("Sh&utdown"), nullptr);
connect(shutdown, SIGNAL(triggered()), m_controller, SLOT(closeGame()));
m_gameActions.append(shutdown);
emulationMenu->addAction(shutdown);
emulationMenu->addSeparator();
QAction* pause = new QAction(tr("&Pause"), nullptr);