all repos — mgba @ d0b63162d590ce2e185f6f35b587244a9b7e5851

mGBA Game Boy Advance Emulator

Add exit menu item on non-OS X
Jeffrey Pfau jeffrey@endrift.com
Sat, 18 Oct 2014 00:42:35 -0700
commit

d0b63162d590ce2e185f6f35b587244a9b7e5851

parent

add64ce269033a3c9f4d9fe98e8bfe4c163a90b7

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -212,6 +212,10 @@ void Window::setupMenu(QMenuBar* menubar) {

menubar->clear(); QMenu* fileMenu = menubar->addMenu(tr("&File")); fileMenu->addAction(tr("Load &ROM..."), this, SLOT(selectROM()), QKeySequence::Open); +#ifndef Q_OS_MAC + fileMenu->addSeparator(); + fileMenu->addAction(tr("E&xit"), this, SLOT(close()), QKeySequence::Quit); +#endif QMenu* emulationMenu = menubar->addMenu(tr("&Emulation")); QAction* reset = new QAction(tr("&Reset"), emulationMenu);