From a1b847a1ef2ef88ba1ea8c1001cc650dfebcf5a2 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Fri, 19 Jul 2019 17:58:04 +0700 Subject: 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. --- gui/options.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gui/options.cpp') 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; -- cgit v1.2.3