mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-05 00:22:31 +02:00
Pointer safety
This commit is contained in:
parent
f239473f0c
commit
6901a9f47e
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user