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:
@@ -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" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user