CLOUD: Fix SaveLoadCloudSyncProgressDialog crash
It's closing itself a bit later now.
This commit is contained in:
parent
e9721976aa
commit
3db80154d6
2 changed files with 13 additions and 3 deletions
|
@ -46,7 +46,7 @@ enum {
|
|||
kBackgroundSyncCmd = 'PDBS'
|
||||
};
|
||||
|
||||
SaveLoadCloudSyncProgressDialog::SaveLoadCloudSyncProgressDialog(): Dialog(10, 10, 320, 100) {
|
||||
SaveLoadCloudSyncProgressDialog::SaveLoadCloudSyncProgressDialog(): Dialog(10, 10, 320, 100), _close(false) {
|
||||
int x = 10;
|
||||
int buttonHeight = 24;
|
||||
int buttonWidth = 140;
|
||||
|
@ -77,14 +77,22 @@ void SaveLoadCloudSyncProgressDialog::handleCommand(CommandSender *sender, uint3
|
|||
|
||||
case kSavesSyncEndedCmd:
|
||||
case kBackgroundSyncCmd:
|
||||
setResult(kBackgroundSyncCmd);
|
||||
close();
|
||||
_close = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Dialog::handleCommand(sender, cmd, data);
|
||||
}
|
||||
|
||||
void SaveLoadCloudSyncProgressDialog::handleTickle() {
|
||||
if (_close) {
|
||||
setResult(kBackgroundSyncCmd);
|
||||
close();
|
||||
}
|
||||
|
||||
Dialog::handleTickle();
|
||||
}
|
||||
|
||||
#ifndef DISABLE_SAVELOADCHOOSER_GRID
|
||||
SaveLoadChooserType getRequestedSaveLoadDialog(const MetaEngine &metaEngine) {
|
||||
const Common::String &userConfig = ConfMan.get("gui_saveload_chooser", Common::ConfigManager::kApplicationDomain);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue