From 4a93e54e635eab123f02353c4ed11ac0bcc09d6f Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Wed, 9 Nov 2011 15:28:39 -0500 Subject: [PATCH] More debugging, and change around how the static function works --- src/libtomahawk/utils/tomahawkutils.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/utils/tomahawkutils.cpp b/src/libtomahawk/utils/tomahawkutils.cpp index 52f11e5d7..03552b3a9 100644 --- a/src/libtomahawk/utils/tomahawkutils.cpp +++ b/src/libtomahawk/utils/tomahawkutils.cpp @@ -481,9 +481,9 @@ NetworkProxyFactory::NetworkProxyFactory( const NetworkProxyFactory& other ) QList< QNetworkProxy > NetworkProxyFactory::proxyForQuery( const QNetworkProxyQuery& query ) { - Q_UNUSED( query ); - QList< QNetworkProxy > proxies; - proxies << QNetworkProxy( QNetworkProxy::DefaultProxy ) << QNetworkProxy( QNetworkProxy::NoProxy ); + tDebug() << Q_FUNC_INFO << " in thread " << QThread::currentThread() << " for query " << query.url(); + TomahawkUtils::NetworkProxyFactory* proxyFactory = TomahawkUtils::proxyFactory(); + QList< QNetworkProxy > proxies = proxyFactory->queryProxy( query ); return proxies; } @@ -491,6 +491,7 @@ NetworkProxyFactory::proxyForQuery( const QNetworkProxyQuery& query ) QList< QNetworkProxy > NetworkProxyFactory::queryProxy( const QNetworkProxyQuery& query ) { + tDebug() << Q_FUNC_INFO << " in thread " << QThread::currentThread() << " for query " << query.url(); QList< QNetworkProxy > proxies; QString hostname = query.peerHostName(); if ( hostname.isEmpty() || m_noProxyHosts.contains( hostname ) )