Make code more readable.

This commit is contained in:
Daniel Molkentin 2012-10-09 10:10:41 +02:00
parent 861a66f8cb
commit a8d6c083e3

View file

@ -476,9 +476,7 @@ void Application::setupProxy()
switch(proxy) { switch(proxy) {
case QNetworkProxy::NoProxy: { case QNetworkProxy::NoProxy: {
QNetworkProxy proxy; QNetworkProxy::setApplicationProxy(QNetworkProxy::NoProxy);
proxy.setType(QNetworkProxy::NoProxy);
QNetworkProxy::setApplicationProxy(proxy);
break; break;
} }
case QNetworkProxy::DefaultProxy: { case QNetworkProxy::DefaultProxy: {