aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2019-07-19 17:58:04 +0700
committerMatan Bareket2019-07-30 14:51:41 -0400
commita1b847a1ef2ef88ba1ea8c1001cc650dfebcf5a2 (patch)
treed38383c86659d1855380943aa969165ca6816ef5 /gui/options.cpp
parent28c93ed027130e10a8bd2ea9f57aa3cb5e2d147a (diff)
downloadscummvm-rg350-a1b847a1ef2ef88ba1ea8c1001cc650dfebcf5a2.tar.gz
scummvm-rg350-a1b847a1ef2ef88ba1ea8c1001cc650dfebcf5a2.tar.bz2
scummvm-rg350-a1b847a1ef2ef88ba1ea8c1001cc650dfebcf5a2.zip
GUI: Make Cloud tab wizard input box cleanup value
Now input box does not remember old code you've put in it if you changed selected storage or disconnected one.
Diffstat (limited to 'gui/options.cpp')
-rw-r--r--gui/options.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index b5557275e6..7caef1f885 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -2208,6 +2208,8 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
break;
}
case kPopUpItemSelectedCmd: {
+ if (_storageWizardCodeBox)
+ _storageWizardCodeBox->setEditString("");
// update container's scrollbar
reflowLayout();
break;
@@ -2298,6 +2300,9 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
break;
}
case kDisconnectStorageCmd: {
+ if (_storageWizardCodeBox)
+ _storageWizardCodeBox->setEditString("");
+
if (_selectedStorageIndex == CloudMan.getStorageIndex() && CloudMan.isWorking()) {
bool cancel = true;