diff options
Diffstat (limited to 'gui/saveload.cpp')
-rw-r--r-- | gui/saveload.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/saveload.cpp b/gui/saveload.cpp index 29b63a0415..21be09d99e 100644 --- a/gui/saveload.cpp +++ b/gui/saveload.cpp @@ -105,6 +105,14 @@ int SaveLoadChooser::runModal(const EnginePlugin *plugin, const String &target) return ret; } +void SaveLoadChooser::open() { + Dialog::open(); + + // So that quitting ScummVM will not cause the dialog result to say a + // savegame was selected. + setResult(-1); +} + const Common::String &SaveLoadChooser::getResultString() const { return (_list->getSelected() > -1) ? _list->getSelectedString() : _resultString; } |