1
0
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:
Leo Franchi
2012-07-12 11:50:21 -04:00
parent f239473f0c
commit 6901a9f47e

View File

@@ -54,6 +54,10 @@ DatabaseCommand_LogPlayback::postCommitHook()
// do not auto resolve this track // do not auto resolve this track
m_query = Tomahawk::Query::get( m_artist, m_track, QString() ); m_query = Tomahawk::Query::get( m_artist, m_track, QString() );
} }
if ( m_query.isNull() )
return;
m_query->setPlayedBy( source(), m_playtime ); m_query->setPlayedBy( source(), m_playtime );
if ( m_action == Finished ) if ( m_action == Finished )