all repos — mgba @ a31e13f2d862c8119cbea9fe4b41f0f0403e1949

mGBA Game Boy Advance Emulator

Qt: Add load alternate save options (fixes #1072)
Vicki Pfau vi@endrift.com
Tue, 08 May 2018 14:11:19 -0700
commit

a31e13f2d862c8119cbea9fe4b41f0f0403e1949

parent

be74bd349a65fa2ccf778577f55a5d6474e8c165

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

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

@@ -989,6 +989,11 @@ addControlledAction(fileMenu, fileMenu->addAction(tr("Add folder to library..."), this, SLOT(addDirToLibrary())),

"addDirToLibrary"); #endif + QAction* loadAlternateSave = new QAction(tr("Load alternate save..."), fileMenu); + connect(loadAlternateSave, &QAction::triggered, [this]() { this->selectSave(false); }); + m_gameActions.append(loadAlternateSave); + addControlledAction(fileMenu, loadAlternateSave, "loadAlternateSave"); + QAction* loadTemporarySave = new QAction(tr("Load temporary save..."), fileMenu); connect(loadTemporarySave, &QAction::triggered, [this]() { this->selectSave(true); }); m_gameActions.append(loadTemporarySave);