mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
Don't call nam->setNetworkAccessible, which breaks network connectivity on Windows with Qt5.4.
This commit is contained in:
@@ -210,11 +210,12 @@ nam()
|
|||||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Found gui thread in nam hash";
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Found gui thread in nam hash";
|
||||||
|
|
||||||
// Create a nam for this thread based on the main thread's settings but with its own proxyfactory
|
// Create a nam for this thread based on the main thread's settings but with its own proxyfactory
|
||||||
QNetworkAccessManager *mainNam = s_threadNamHash[ QCoreApplication::instance()->thread() ];
|
QNetworkAccessManager* mainNam = s_threadNamHash[ QCoreApplication::instance()->thread() ];
|
||||||
QNetworkAccessManager* newNam = new QNetworkAccessManager();
|
QNetworkAccessManager* newNam = new QNetworkAccessManager();
|
||||||
|
|
||||||
newNam->setConfiguration( QNetworkConfiguration( mainNam->configuration() ) );
|
newNam->setConfiguration( QNetworkConfiguration( mainNam->configuration() ) );
|
||||||
newNam->setNetworkAccessible( mainNam->networkAccessible() );
|
// DISABLED: This breaks Windows builds, because mainNam always claims the network is inaccessible
|
||||||
|
// newNam->setNetworkAccessible( mainNam->networkAccessible() );
|
||||||
newNam->setProxyFactory( proxyFactory( false, true ) );
|
newNam->setProxyFactory( proxyFactory( false, true ) );
|
||||||
|
|
||||||
s_threadNamHash[ QThread::currentThread() ] = newNam;
|
s_threadNamHash[ QThread::currentThread() ] = newNam;
|
||||||
|
Reference in New Issue
Block a user