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:
parent
cfbccb85cf
commit
ea11f7c7be
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user