mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 09:34:53 +02:00
Show currently-playing speaker for GenericPageItems with children interfaces
This commit is contained in:
@@ -86,7 +86,16 @@ bool
|
|||||||
GenericPageItem::isBeingPlayed() const
|
GenericPageItem::isBeingPlayed() const
|
||||||
{
|
{
|
||||||
if ( m_get() )
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user