mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
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
@ -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;
|
||||
}
|
||||
|
@ -67,6 +67,7 @@ public:
|
||||
virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
|
||||
void setList(const StringList& list);
|
||||
int runModal(const EnginePlugin *plugin, const String &target);
|
||||
void open();
|
||||
|
||||
const Common::String &getResultString() const;
|
||||
void setSaveMode(bool saveMode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user