mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Some cleanup
This commit is contained in:
@@ -326,8 +326,7 @@ AudioEngine::sendNowPlayingNotification( const Tomahawk::InfoSystem::InfoType ty
|
|||||||
onNowPlayingInfoReady( type );
|
onNowPlayingInfoReady( type );
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_detail::Closure* closure = NewClosure( m_currentTrack->album().data(), SIGNAL( updated() ), const_cast<AudioEngine*>(this), SLOT( onNowPlayingInfoReady( const Tomahawk::InfoSystem::InfoType ) ), type );
|
_detail::Closure* closure = NewClosure( m_currentTrack->album().data(), SIGNAL( updated() ), const_cast< AudioEngine* >( this ), SLOT( onNowPlayingInfoReady( const Tomahawk::InfoSystem::InfoType ) ), type );
|
||||||
closure->setAutoDelete( false );
|
|
||||||
m_currentTrack->album()->cover( QSize( 0, 0 ) );
|
m_currentTrack->album()->cover( QSize( 0, 0 ) );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -353,7 +352,7 @@ AudioEngine::onNowPlayingInfoReady( const Tomahawk::InfoSystem::InfoType type )
|
|||||||
#ifndef ENABLE_HEADLESS
|
#ifndef ENABLE_HEADLESS
|
||||||
QImage cover;
|
QImage cover;
|
||||||
cover = m_currentTrack->album()->cover( QSize( 0, 0 ) ).toImage();
|
cover = m_currentTrack->album()->cover( QSize( 0, 0 ) ).toImage();
|
||||||
playInfo["cover"] = QVariant( cover );
|
playInfo["cover"] = cover;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user