mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
Simplify isBeingPlayed
This commit is contained in:
@@ -402,14 +402,5 @@ CollectionViewPage::isTemporaryPage() const
|
|||||||
bool
|
bool
|
||||||
CollectionViewPage::isBeingPlayed() const
|
CollectionViewPage::isBeingPlayed() const
|
||||||
{
|
{
|
||||||
if ( !playlistInterface() )
|
return m_playlistInterface->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() );
|
||||||
return false;
|
|
||||||
|
|
||||||
if ( playlistInterface() == AudioEngine::instance()->currentTrackPlaylist() )
|
|
||||||
return true;
|
|
||||||
|
|
||||||
if ( playlistInterface()->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() ) )
|
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user