From 1c0e4e8206acfedebe00a928ec37efc1f203f4d1 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Tue, 30 Aug 2016 21:29:53 +0100 Subject: 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. --- gui/storagewizarddialog.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3