Make sure the "Auto Detect" button is enabled when the

"Use system proxy configuration" is selected.

Make sure users can simply click the Apply button after selecting the same
option under windows.

CCBUG: 291259
(cherry picked from commit a52df46f43)
This commit is contained in:
Dawit Alemayehu 2012-01-13 01:13:27 -05:00
parent ec2f11fa3e
commit 5a31739e6e
2 changed files with 2 additions and 4 deletions

View file

@ -219,7 +219,7 @@ static void setProxyInformation(const QString& value,
} else {
manEdit->setText(urlStr);
}
if (spinBox && portNum > -1) {
spinBox->setValue(portNum);
}
@ -252,6 +252,7 @@ KProxyDialog::KProxyDialog(QWidget* parent, const QVariantList& args)
connect(mUi.systemProxyRadioButton, SIGNAL(toggled(bool)), mUi.systemProxyGroupBox, SLOT(setVisible(bool)));
#else
mUi.autoDetectButton->setVisible(false);
connect(mUi.systemProxyRadioButton, SIGNAL(clicked()), SLOT(slotChanged()));
#endif
// signals and slots connections

View file

@ -123,9 +123,6 @@ Automatic detection is performed using the <b>Web Proxy Auto-Discovery Pro
</item>
<item row="4" column="3">
<widget class="QPushButton" name="autoDetectButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="whatsThis">
<string>&lt;qt&gt;Attempt automatic discovery of the environment variables used for setting system wide proxy information.&lt;p&gt; This feature works by searching for commonly used variable names such as HTTP_PROXY, FTP_PROXY and NO_PROXY.&lt;/qt&gt;</string>
</property>