mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
* Don't crash in ScriptCommand_AllAlbums.
This commit is contained in:
@@ -67,7 +67,7 @@ ScriptCommand_AllAlbums::exec()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_artist.isNull() )
|
if ( !m_artist )
|
||||||
{
|
{
|
||||||
reportFailure();
|
reportFailure();
|
||||||
return;
|
return;
|
||||||
@@ -83,7 +83,9 @@ ScriptCommand_AllAlbums::exec()
|
|||||||
void
|
void
|
||||||
ScriptCommand_AllAlbums::reportFailure()
|
ScriptCommand_AllAlbums::reportFailure()
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << "and artist" << m_artist->name();
|
if ( m_artist )
|
||||||
|
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << "and artist" << m_artist->name();
|
||||||
|
|
||||||
emit albums( QList< Tomahawk::album_ptr >() );
|
emit albums( QList< Tomahawk::album_ptr >() );
|
||||||
emit done();
|
emit done();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user