mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Don't access NULL pointers which we are reporting failure on
This commit is contained in:
@@ -74,7 +74,13 @@ ScriptCommand_AllTracks::exec()
|
|||||||
void
|
void
|
||||||
ScriptCommand_AllTracks::reportFailure()
|
ScriptCommand_AllTracks::reportFailure()
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << " artist" << m_album->artist()->name() << " album" << m_album->name();
|
if ( m_album && m_collection )
|
||||||
|
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << " artist" << m_album->artist()->name() << " album" << m_album->name();
|
||||||
|
else if ( m_collection )
|
||||||
|
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << " (no more information available)";
|
||||||
|
else
|
||||||
|
tDebug() << Q_FUNC_INFO;
|
||||||
|
|
||||||
emit tracks( QList< Tomahawk::query_ptr >() );
|
emit tracks( QList< Tomahawk::query_ptr >() );
|
||||||
emit done();
|
emit done();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user