From 13b4290f77bf0de1b14bb10ea2aebc914b6699c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Thu, 8 Jul 2010 08:25:25 +0000 Subject: [PATCH] when a manual proxy was set, setting automatic proxy did not clean old proxy settings, refs #5 --- proxyface/proxy.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxyface/proxy.hxx b/proxyface/proxy.hxx index 14f9210..050552c 100644 --- a/proxyface/proxy.hxx +++ b/proxyface/proxy.hxx @@ -65,7 +65,10 @@ namespace gui { case 0: try { _url->setEnabled(false); _port->setEnabled(false); + _url->setText(""); + _port->setValue(0); type=QNetworkProxy::NoProxy; + QNetworkProxy::setApplicationProxy(QNetworkProxy(type)); _auto.proxy(_testUrl); } catch (...) {} break; case 1: {