1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

Fix accessing playlist that could be invalid inside debug

This commit is contained in:
Jeff Mitchell
2012-06-29 09:59:41 -04:00
parent 0b3c794cc9
commit a846d91bef

View File

@@ -62,8 +62,9 @@ DatabaseCommand_DeleteDynamicPlaylist::postCommitHook()
if( playlist.isNull() )
playlist = source()->collection()->station( m_playlistguid );
qDebug() << "Just tried to load playlist for deletion:" << m_playlistguid << "Did we get a null one?" << playlist.isNull() << "is it a station?" << (playlist->mode() == OnDemand);
tLog( LOGVERBOSE ) << "Just tried to load playlist for deletion:" << m_playlistguid << "Did we get a null one?" << playlist.isNull();
Q_ASSERT( !playlist.isNull() );
tLog( LOGVERBOSE ) << "is it a station?" << ( playlist->mode() == OnDemand );
playlist->reportDeleted( playlist );