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:
@@ -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." )
|
||||||
|
Reference in New Issue
Block a user