1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

No need to invoke tracks command with empty arguments list.

This commit is contained in:
Christian Muehlhaeuser
2015-04-18 06:03:48 +02:00
parent c3702a633d
commit cba146a902

View File

@@ -68,6 +68,7 @@ ScriptCommand_AllTracks::exec()
if ( m_album ) if ( m_album )
{ {
QVariantMap arguments;
arguments[ "artist" ] = m_album->artist()->name(); arguments[ "artist" ] = m_album->artist()->name();
arguments[ "album" ] = m_album->name(); arguments[ "album" ] = m_album->name();
@@ -75,7 +76,7 @@ ScriptCommand_AllTracks::exec()
} }
else else
{ {
job = collection->scriptObject()->invoke( "tracks", arguments ); job = collection->scriptObject()->invoke( "tracks" );
} }