1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02: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; return;
} }
if ( ! m_currentTrack || if ( m_currentTrack.isNull() ||
!m_currentTrack->track() || m_currentTrack.data()->track().isNull() ||
!m_currentTrack->artist()|| m_currentTrack.data()->artist().isNull() ||
!m_currentTrack->album() ) m_currentTrack.data()->album().isNull() )
return;
QVariantMap playInfo; QVariantMap playInfo;
playInfo["message"] = QString( "Tomahawk is playing \"%1\" by %2 on album %3." ) playInfo["message"] = QString( "Tomahawk is playing \"%1\" by %2 on album %3." )