1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

* Reorder toma.hk parameters to match website order.

This commit is contained in:
Christian Muehlhaeuser
2012-03-28 07:06:02 +02:00
parent c54ca78769
commit 5593c134cd

View File

@@ -94,7 +94,8 @@ GlobalActionManager::openLinkFromQuery( const query_ptr& query ) const
title = query->results().first()->track();
artist = query->results().first()->artist().isNull() ? QString() : query->results().first()->artist()->name();
album = query->results().first()->album().isNull() ? QString() : query->results().first()->album()->name();
} else
}
else
{
title = query->track();
artist = query->artist();
@@ -110,10 +111,10 @@ GlobalActionManager::openLink( const QString& title, const QString& artist, cons
{
QUrl link( QString( "%1/open/track/" ).arg( hostname() ) );
if( !title.isEmpty() )
link.addQueryItem( "title", title );
if ( !artist.isEmpty() )
link.addQueryItem( "artist", artist );
if ( !title.isEmpty() )
link.addQueryItem( "title", title );
if ( !album.isEmpty() )
link.addQueryItem( "album", album );