Fixed bug #2500168 ("GUI: Cannot quit in the launcher's load dialog"). I thought
I would have to do more than this to fix it, but it seems to be enough. svn-id: r35840
This commit is contained in:
parent
e1f8088328
commit
cfdb824535
2 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue