1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Fix crash from album cover refactoring. QPixmap was being put into a

QVariant and QImage being taken out.
This commit is contained in:
Jeff Mitchell
2012-01-23 15:12:06 -05:00
parent b768e84afe
commit 63e59e7e27

View File

@@ -354,7 +354,7 @@ AudioEngine::onNowPlayingInfoReady()
{ {
QPixmap cover; QPixmap cover;
cover.loadFromData( m_currentTrack->album()->cover() ); cover.loadFromData( m_currentTrack->album()->cover() );
playInfo["image"] = QVariant( cover ); playInfo["image"] = QVariant( cover.toImage() );
} }
Tomahawk::InfoSystem::InfoSystem::instance()->pushInfo( Tomahawk::InfoSystem::InfoSystem::instance()->pushInfo(