mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
qInstallMsgHandler(blackboard); for(int i=0;i<1000;++i) qDebug() << "QPixmap::loadFromData returns bool,
not the pixmap itself"
This commit is contained in:
@@ -351,7 +351,11 @@ AudioEngine::onNowPlayingInfoReady()
|
|||||||
.arg( m_currentTrack->album().isNull() ? QString() : QString( " %1" ).arg( tr( "on album %1" ).arg( m_currentTrack->album()->name() ) ) );
|
.arg( m_currentTrack->album().isNull() ? QString() : QString( " %1" ).arg( tr( "on album %1" ).arg( m_currentTrack->album()->name() ) ) );
|
||||||
|
|
||||||
if ( !m_currentTrack->album().isNull() )
|
if ( !m_currentTrack->album().isNull() )
|
||||||
playInfo["image"] = QVariant( QPixmap().loadFromData( m_currentTrack->album()->cover() ) );
|
{
|
||||||
|
QPixmap cover;
|
||||||
|
cover.loadFromData( m_currentTrack->album()->cover() );
|
||||||
|
playInfo["image"] = QVariant( cover );
|
||||||
|
}
|
||||||
|
|
||||||
Tomahawk::InfoSystem::InfoSystem::instance()->pushInfo(
|
Tomahawk::InfoSystem::InfoSystem::instance()->pushInfo(
|
||||||
s_aeInfoIdentifier, Tomahawk::InfoSystem::InfoNotifyUser,
|
s_aeInfoIdentifier, Tomahawk::InfoSystem::InfoNotifyUser,
|
||||||
|
Reference in New Issue
Block a user