From 6da4e14bae0742c63eaae7d42dc0074a783b13db Mon Sep 17 00:00:00 2001 From: nowrep Date: Thu, 30 May 2013 22:55:08 +0200 Subject: [PATCH] [SBI_NetworkIcon] Fixed saving proxies other than NoProxy. --- src/plugins/StatusBarIcons/sbi_proxywidget.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/StatusBarIcons/sbi_proxywidget.cpp b/src/plugins/StatusBarIcons/sbi_proxywidget.cpp index f36da116e..f676ec307 100644 --- a/src/plugins/StatusBarIcons/sbi_proxywidget.cpp +++ b/src/plugins/StatusBarIcons/sbi_proxywidget.cpp @@ -53,14 +53,14 @@ SBI_NetworkProxy* SBI_ProxyWidget::getProxy() const if (ui->noProxy->isChecked()) { proxy->setPreference(NetworkProxyFactory::NoProxy); } - else if (ui->systemProxy->isChecked()) { - proxy->setPreference(NetworkProxyFactory::NoProxy); + else if (ui->systemProxy->isChecked()) { + proxy->setPreference(NetworkProxyFactory::SystemProxy); } - else if (ui->manualProxy->isChecked()) { - proxy->setPreference(NetworkProxyFactory::NoProxy); + else if (ui->manualProxy->isChecked()) { + proxy->setPreference(NetworkProxyFactory::DefinedProxy); } - else if (ui->pacProxy->isChecked()) { - proxy->setPreference(NetworkProxyFactory::NoProxy); + else if (ui->pacProxy->isChecked()) { + proxy->setPreference(NetworkProxyFactory::ProxyAutoConfig); } return proxy;