mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
Doh, smart pointers -- fix compile
This commit is contained in:
parent
a32ff26401
commit
c7e2a5c1c1
@ -327,10 +327,11 @@ AudioEngine::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData,
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! m_currentTrack ||
|
||||
!m_currentTrack->track() ||
|
||||
!m_currentTrack->artist()||
|
||||
!m_currentTrack->album() )
|
||||
if ( m_currentTrack.isNull() ||
|
||||
m_currentTrack.data()->track().isNull() ||
|
||||
m_currentTrack.data()->artist().isNull() ||
|
||||
m_currentTrack.data()->album().isNull() )
|
||||
return;
|
||||
|
||||
QVariantMap playInfo;
|
||||
playInfo["message"] = QString( "Tomahawk is playing \"%1\" by %2 on album %3." )
|
||||
|
Loading…
x
Reference in New Issue
Block a user