1
0
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:
Jeff Mitchell 2011-08-26 10:22:15 -04:00
parent a32ff26401
commit c7e2a5c1c1

View File

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