mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 00:54:20 +02:00
Fix accessing playlist that could be invalid inside debug
This commit is contained in:
@@ -62,8 +62,9 @@ DatabaseCommand_DeleteDynamicPlaylist::postCommitHook()
|
|||||||
if( playlist.isNull() )
|
if( playlist.isNull() )
|
||||||
playlist = source()->collection()->station( m_playlistguid );
|
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() );
|
Q_ASSERT( !playlist.isNull() );
|
||||||
|
tLog( LOGVERBOSE ) << "is it a station?" << ( playlist->mode() == OnDemand );
|
||||||
|
|
||||||
playlist->reportDeleted( playlist );
|
playlist->reportDeleted( playlist );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user