mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Pointer safety
This commit is contained in:
@@ -54,6 +54,10 @@ DatabaseCommand_LogPlayback::postCommitHook()
|
||||
// do not auto resolve this track
|
||||
m_query = Tomahawk::Query::get( m_artist, m_track, QString() );
|
||||
}
|
||||
|
||||
if ( m_query.isNull() )
|
||||
return;
|
||||
|
||||
m_query->setPlayedBy( source(), m_playtime );
|
||||
|
||||
if ( m_action == Finished )
|
||||
|
Reference in New Issue
Block a user