mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 16:14:40 +02:00
More -.-
This commit is contained in:
@@ -90,7 +90,7 @@ ShortLinkHelper::shortLink( const Tomahawk::playlist_ptr& pl )
|
|||||||
const QUrl url( QString( "%1/p/").arg( hostname() ) );
|
const QUrl url( QString( "%1/p/").arg( hostname() ) );
|
||||||
QNetworkRequest req( url );
|
QNetworkRequest req( url );
|
||||||
req.setHeader( QNetworkRequest::ContentTypeHeader, QString( "multipart/form-data; boundary=%1" ).arg( QString::fromLatin1( boundary ) ) );
|
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() ),
|
NewClosure( d->reply, SIGNAL( finished() ),
|
||||||
this, SLOT( shortLinkRequestFinished( Tomahawk::playlist_ptr ) ), pl );
|
this, SLOT( shortLinkRequestFinished( Tomahawk::playlist_ptr ) ), pl );
|
||||||
@@ -113,7 +113,7 @@ ShortLinkHelper::shortenLink( const QUrl& url, const QVariant& callbackObj )
|
|||||||
QNetworkRequest request;
|
QNetworkRequest request;
|
||||||
request.setUrl( url );
|
request.setUrl( url );
|
||||||
|
|
||||||
d->reply = Tomahawk::Utils::nam()->get( request );
|
d->reply = TomahawkUtils::nam()->get( request );
|
||||||
if ( callbackObj.isValid() )
|
if ( callbackObj.isValid() )
|
||||||
d->reply->setProperty( "callbackobj", callbackObj );
|
d->reply->setProperty( "callbackobj", callbackObj );
|
||||||
connect( d->reply, SIGNAL( finished() ), SLOT( shortenLinkRequestFinished() ) );
|
connect( d->reply, SIGNAL( finished() ), SLOT( shortenLinkRequestFinished() ) );
|
||||||
|
Reference in New Issue
Block a user