mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-20 07:52:30 +02:00
More -.-
This commit is contained in:
parent
aceeda13ae
commit
1fbe8e69a8
@ -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() ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user