[Pkg-owncloud-commits] [owncloud-client] 333/498: Network: Fix enabling of proxy auth text fields.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 031d35de03159161fe516153a1546637725cf026
Author: Christian Kamm <kamm at incasoftware.de>
Date:   Thu Jul 16 10:27:15 2015 +0200

    Network: Fix enabling of proxy auth text fields.
---
 src/gui/networksettings.cpp | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/gui/networksettings.cpp b/src/gui/networksettings.cpp
index 8612b6d..85dc1e0 100644
--- a/src/gui/networksettings.cpp
+++ b/src/gui/networksettings.cpp
@@ -40,12 +40,18 @@ NetworkSettings::NetworkSettings(QWidget *parent) :
 
     _ui->authRequiredcheckBox->setEnabled(true);
 
+    // Explicitly set up the enabled status of the proxy auth widgets to ensure
+    // toggling the parent enables/disables the children
+    _ui->userLineEdit->setEnabled(true);
+    _ui->passwordLineEdit->setEnabled(true);
+    _ui->authWidgets->setEnabled(_ui->authRequiredcheckBox->isChecked());
+    connect(_ui->authRequiredcheckBox, SIGNAL(toggled(bool)),
+            _ui->authWidgets, SLOT(setEnabled(bool)));
+
     connect(_ui->manualProxyRadioButton, SIGNAL(toggled(bool)),
             _ui->manualSettings, SLOT(setEnabled(bool)));
     connect(_ui->manualProxyRadioButton, SIGNAL(toggled(bool)),
             _ui->typeComboBox, SLOT(setEnabled(bool)));
-    connect(_ui->authRequiredcheckBox, SIGNAL(toggled(bool)),
-            _ui->authWidgets, SLOT(setEnabled(bool)));
 
     loadProxySettings();
     loadBWLimitSettings();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list