1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-20 07:52:30 +02:00
This commit is contained in:
Dominik Schmidt 2013-07-16 19:03:34 +02:00
parent aceeda13ae
commit 1fbe8e69a8

View File

@ -90,7 +90,7 @@ ShortLinkHelper::shortLink( const Tomahawk::playlist_ptr& pl )
const QUrl url( QString( "%1/p/").arg( hostname() ) );
QNetworkRequest req( url );
req.setHeader( QNetworkRequest::ContentTypeHeader, QString( "multipart/form-data; boundary=%1" ).arg( QString::fromLatin1( boundary ) ) );
d->reply = Tomahawk::Utils::nam()->post( req, data );
d->reply = TomahawkUtils::nam()->post( req, data );
NewClosure( d->reply, SIGNAL( finished() ),
this, SLOT( shortLinkRequestFinished( Tomahawk::playlist_ptr ) ), pl );
@ -113,7 +113,7 @@ ShortLinkHelper::shortenLink( const QUrl& url, const QVariant& callbackObj )
QNetworkRequest request;
request.setUrl( url );
d->reply = Tomahawk::Utils::nam()->get( request );
d->reply = TomahawkUtils::nam()->get( request );
if ( callbackObj.isValid() )
d->reply->setProperty( "callbackobj", callbackObj );
connect( d->reply, SIGNAL( finished() ), SLOT( shortenLinkRequestFinished() ) );