mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
No need to invoke tracks command with empty arguments list.
This commit is contained in:
@@ -68,6 +68,7 @@ ScriptCommand_AllTracks::exec()
|
||||
|
||||
if ( m_album )
|
||||
{
|
||||
QVariantMap arguments;
|
||||
arguments[ "artist" ] = m_album->artist()->name();
|
||||
arguments[ "album" ] = m_album->name();
|
||||
|
||||
@@ -75,7 +76,7 @@ ScriptCommand_AllTracks::exec()
|
||||
}
|
||||
else
|
||||
{
|
||||
job = collection->scriptObject()->invoke( "tracks", arguments );
|
||||
job = collection->scriptObject()->invoke( "tracks" );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user