From 1c63a90e1a68ec0abee99e03d6b9a8299056a6a9 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 15 Oct 2015 11:33:48 +0200 Subject: [PATCH] SBI_Proxy: Remove option to set NoProxy QtWebEngine doesn't support NoProxy option, it will always try to use SystemProxy if no proxy is specified --- .../StatusBarIcons/sbi_proxywidget.cpp | 10 ++------- src/plugins/StatusBarIcons/sbi_proxywidget.ui | 21 +++++++------------ 2 files changed, 9 insertions(+), 22 deletions(-) diff --git a/src/plugins/StatusBarIcons/sbi_proxywidget.cpp b/src/plugins/StatusBarIcons/sbi_proxywidget.cpp index f3fa8fd0f..59f3640b2 100644 --- a/src/plugins/StatusBarIcons/sbi_proxywidget.cpp +++ b/src/plugins/StatusBarIcons/sbi_proxywidget.cpp @@ -34,7 +34,7 @@ void SBI_ProxyWidget::clear() ui->proxyPassword->clear(); ui->proxyType->setCurrentIndex(0); - ui->noProxy->setChecked(true); + ui->systemProxy->setChecked(true); } SBI_NetworkProxy* SBI_ProxyWidget::getProxy() const @@ -46,10 +46,8 @@ SBI_NetworkProxy* SBI_ProxyWidget::getProxy() const proxy->setUserName(ui->proxyUsername->text()); proxy->setPassword(ui->proxyPassword->text()); - if (ui->noProxy->isChecked()) { + if (ui->systemProxy->isChecked()) { proxy->setType(QNetworkProxy::NoProxy); - } else if (ui->systemProxy->isChecked()) { - proxy->setType(QNetworkProxy::DefaultProxy); } else { proxy->setType(ui->proxyType->currentIndex() == 0 ? QNetworkProxy::HttpProxy : QNetworkProxy::Socks5Proxy); } @@ -67,10 +65,6 @@ void SBI_ProxyWidget::setProxy(const SBI_NetworkProxy &proxy) switch (proxy.type()) { case QNetworkProxy::NoProxy: - ui->noProxy->setChecked(true); - break; - - case QNetworkProxy::DefaultProxy: ui->systemProxy->setChecked(true); break; diff --git a/src/plugins/StatusBarIcons/sbi_proxywidget.ui b/src/plugins/StatusBarIcons/sbi_proxywidget.ui index 876d288c2..8a5c8a6cd 100644 --- a/src/plugins/StatusBarIcons/sbi_proxywidget.ui +++ b/src/plugins/StatusBarIcons/sbi_proxywidget.ui @@ -14,14 +14,7 @@ Form - - - - Do &not use proxy - - - - + @@ -59,7 +52,7 @@ - + Qt::Horizontal @@ -75,7 +68,7 @@ - + @@ -112,21 +105,21 @@ - + S&ystem proxy configuration - + &Manual configuration - + Qt::Vertical @@ -139,7 +132,7 @@ - +