1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

Show currently-playing speaker for GenericPageItems with children interfaces

This commit is contained in:
Leo Franchi 2012-07-29 17:53:55 -04:00
parent cfbccb85cf
commit ea11f7c7be

View File

@ -86,7 +86,16 @@ bool
GenericPageItem::isBeingPlayed() const
{
if ( m_get() )
return m_get()->isBeingPlayed();
{
if ( m_get()->isBeingPlayed() )
return true;
if ( !m_get()->playlistInterface().isNull() && m_get()->playlistInterface() == AudioEngine::instance()->currentTrackPlaylist() )
return true;
if ( !m_get()->playlistInterface().isNull() && m_get()->playlistInterface()->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() ) )
return true;
}
return false;
}