diff options
author | Thierry Crozat | 2016-08-30 21:29:53 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-08-30 21:37:34 +0100 |
commit | 1c0e4e8206acfedebe00a928ec37efc1f203f4d1 (patch) | |
tree | 0ac14199cd33028c89019ce5a9f81afdff8ad07f /gui | |
parent | 7edc96803e5af76a8253a0f168590633ff43866f (diff) | |
download | scummvm-rg350-1c0e4e8206acfedebe00a928ec37efc1f203f4d1.tar.gz scummvm-rg350-1c0e4e8206acfedebe00a928ec37efc1f203f4d1.tar.bz2 scummvm-rg350-1c0e4e8206acfedebe00a928ec37efc1f203f4d1.zip |
CLOUD: Disable the connect button initially as the code is empty
The connect button is enabled/disabled whenever the text in the
code widget is changed and it's validity assessed. But the initial
state was not correct.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/storagewizarddialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/storagewizarddialog.cpp b/gui/storagewizarddialog.cpp index 8dcea1c774..ad00365813 100644 --- a/gui/storagewizarddialog.cpp +++ b/gui/storagewizarddialog.cpp @@ -70,6 +70,9 @@ StorageWizardDialog::StorageWizardDialog(uint32 storageId): _openUrlWidget = new ButtonWidget(container, "GlobalOptions_Cloud_ConnectionWizard_Container.OpenUrlButton", _("Open URL"), 0, kOpenUrlCmd); _pasteCodeWidget = new ButtonWidget(container, "GlobalOptions_Cloud_ConnectionWizard_Container.PasteCodeButton", _("Paste"), _("Pastes clipboard contents into fields"), kPasteCodeCmd); _connectWidget = new ButtonWidget(container, "GlobalOptions_Cloud_ConnectionWizard_Container.ConnectButton", _("Connect"), 0, kConnectCmd); + + // Initialy the code is empty, so disable the connect button + _connectWidget->setEnabled(false); if (Cloud::CloudManager::couldUseLocalServer()) { // hide fields and even the button if local webserver is on |