mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Don't create QNRs for null urls, let audioengine handle it properly
This commit is contained in:
@@ -173,6 +173,10 @@ QtScriptResolverHelper::customIODeviceFactory( const Tomahawk::result_ptr& resul
|
|||||||
.arg( QString( QUrl( result->url() ).toEncoded() ) );
|
.arg( QString( QUrl( result->url() ).toEncoded() ) );
|
||||||
|
|
||||||
QString urlStr = m_resolver->m_engine->mainFrame()->evaluateJavaScript( getUrl ).toString();
|
QString urlStr = m_resolver->m_engine->mainFrame()->evaluateJavaScript( getUrl ).toString();
|
||||||
|
|
||||||
|
if ( urlStr.isEmpty() )
|
||||||
|
return QSharedPointer< QIODevice >();
|
||||||
|
|
||||||
QUrl url = QUrl::fromEncoded( urlStr.toUtf8() );
|
QUrl url = QUrl::fromEncoded( urlStr.toUtf8() );
|
||||||
QNetworkRequest req( url );
|
QNetworkRequest req( url );
|
||||||
tDebug() << "Creating a QNetowrkReply with url:" << req.url().toString();
|
tDebug() << "Creating a QNetowrkReply with url:" << req.url().toString();
|
||||||
|
Reference in New Issue
Block a user