GUI: Fix SaveLoadDialog

It was SavesSyncRequest's target even when closed.
This commit is contained in:
Alexander Tkachev 2016-07-04 17:45:50 +06:00
parent 052d8bf0ae
commit 659dcd9702
2 changed files with 6 additions and 0 deletions

View File

@ -165,6 +165,11 @@ void SaveLoadChooserDialog::open() {
_dialogWasShown = false;
}
void SaveLoadChooserDialog::close() {
CloudMan.setSyncTarget(nullptr); //not that dialog, at least
Dialog::close();
}
int SaveLoadChooserDialog::run(const Common::String &target, const MetaEngine *metaEngine) {
_metaEngine = metaEngine;
_target = target;

View File

@ -73,6 +73,7 @@ public:
virtual ~SaveLoadChooserDialog();
virtual void open();
virtual void close();
virtual void reflowLayout();