mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
Remove some debug and change around some proxy ordering to make sense when no hostname is passed in
This commit is contained in:
@@ -287,7 +287,7 @@ MusicScanner::scanFile( const QFileInfo& fi )
|
||||
m_filemtimes.remove( "file://" + fi.canonicalFilePath() );
|
||||
}
|
||||
|
||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Scanning file:" << fi.canonicalFilePath();
|
||||
//tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Scanning file:" << fi.canonicalFilePath();
|
||||
QVariant m = readFile( fi );
|
||||
if ( m.toMap().isEmpty() )
|
||||
return;
|
||||
|
@@ -333,14 +333,14 @@ NetworkProxyFactory::NetworkProxyFactory( const NetworkProxyFactory& other )
|
||||
QList< QNetworkProxy >
|
||||
NetworkProxyFactory::queryProxy( const QNetworkProxyQuery& query )
|
||||
{
|
||||
//tDebug() << Q_FUNC_INFO << "query hostname is " << query.peerHostName();
|
||||
//tDebug() << Q_FUNC_INFO << "query hostname is " << query.peerHostName() << ", proxy host is " << m_proxy.hostName();
|
||||
|
||||
QList< QNetworkProxy > proxies;
|
||||
QString hostname = query.peerHostName();
|
||||
s_noProxyHostsMutex.lock();
|
||||
if ( s_noProxyHosts.contains( hostname ) )
|
||||
if ( !hostname.isEmpty() && s_noProxyHosts.contains( hostname ) )
|
||||
proxies << QNetworkProxy::NoProxy << systemProxyForQuery( query );
|
||||
else if ( m_proxy.hostName().isEmpty() || hostname.isEmpty() || TomahawkSettings::instance()->proxyType() == QNetworkProxy::NoProxy )
|
||||
else if ( m_proxy.hostName().isEmpty() || TomahawkSettings::instance()->proxyType() == QNetworkProxy::NoProxy )
|
||||
proxies << systemProxyForQuery( query );
|
||||
else
|
||||
proxies << m_proxy << systemProxyForQuery( query );
|
||||
|
Reference in New Issue
Block a user