Pressing "reset" button results in a call to KProxyDialog::load(): make

sure showEnvValueCheckBox is unchecked before setting proxy environment
variables in the ui. It could have been previously checked by user.
This commit is contained in:
Andrea Iacovitti 2013-10-06 20:24:21 +02:00
parent cd67f0651b
commit 5d72d41c94

View file

@ -296,6 +296,9 @@ void KProxyDialog::load()
const int proxyType = KProtocolManager::proxyType();
// Make sure showEnvValueCheckBox is unchecked before setting proxy env var names
mUi.showEnvValueCheckBox->setChecked(false);
setProxyInformation(mProxyMap.value(QL1S("HttpProxy")), proxyType, mUi.manualProxyHttpEdit, mUi.systemProxyHttpEdit, mUi.manualProxyHttpSpinBox, HideHttpUrlScheme);
setProxyInformation(mProxyMap.value(QL1S("HttpsProxy")), proxyType, mUi.manualProxyHttpsEdit, mUi.systemProxyHttpsEdit, mUi.manualProxyHttpsSpinBox, HideHttpsUrlScheme);
setProxyInformation(mProxyMap.value(QL1S("FtpProxy")), proxyType, mUi.manualProxyFtpEdit, mUi.systemProxyFtpEdit, mUi.manualProxyFtpSpinBox, HideFtpUrlScheme);