Qt: Add load alternate save options (fixes #1072)
Vicki Pfau vi@endrift.com
Tue, 08 May 2018 14:11:19 -0700
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/Window.cpp
→
src/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);