1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-21 13:21:52 +02:00

Pointer safety

This commit is contained in:
Leo Franchi
2012-07-12 11:50:21 -04:00
committed by Christian Muehlhaeuser
parent b7fb9a03bf
commit b6d5c86952

View File

@@ -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 )