GUI: fix bug #2822778
(Savegames now get loaded after GMM dialogue execution. This avoids mouse cursor glitches (e.g. mouse cursors which get changed during loadGameState() being popped when the dialogue closes).
This commit is contained in:
parent
5a2bc12f26
commit
1a05efa8ed
3 changed files with 39 additions and 7 deletions
|
@ -246,14 +246,10 @@ void MainMenuDialog::load() {
|
|||
|
||||
int slot = _loadDialog->runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName());
|
||||
|
||||
if (slot >= 0) {
|
||||
// FIXME: For now we just ignore the return
|
||||
// value, which is quite bad since it could
|
||||
// be a fatal loading error, which renders
|
||||
// the engine unusable.
|
||||
_engine->loadGameState(slot);
|
||||
_engine->setGameToLoadSlot(slot);
|
||||
|
||||
if (slot >= 0)
|
||||
close();
|
||||
}
|
||||
}
|
||||
|
||||
enum {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue