mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 22:38:33 +01:00
Don't call nam->setNetworkAccessible, which breaks network connectivity on Windows with Qt5.4.
This commit is contained in:
parent
8e8240ada8
commit
1071a84fa9
@ -210,11 +210,12 @@ nam()
|
||||
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
|
||||
QNetworkAccessManager *mainNam = s_threadNamHash[ QCoreApplication::instance()->thread() ];
|
||||
QNetworkAccessManager* mainNam = s_threadNamHash[ QCoreApplication::instance()->thread() ];
|
||||
QNetworkAccessManager* newNam = new QNetworkAccessManager();
|
||||
|
||||
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 ) );
|
||||
|
||||
s_threadNamHash[ QThread::currentThread() ] = newNam;
|
||||
|
Loading…
x
Reference in New Issue
Block a user