1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-16 02:54:33 +02:00

Simplify isBeingPlayed

This commit is contained in:
Uwe L. Korn
2014-11-16 16:25:12 +01:00
parent b14280b96c
commit 892b5e9050

View File

@@ -402,14 +402,5 @@ CollectionViewPage::isTemporaryPage() const
bool
CollectionViewPage::isBeingPlayed() const
{
if ( !playlistInterface() )
return false;
if ( playlistInterface() == AudioEngine::instance()->currentTrackPlaylist() )
return true;
if ( playlistInterface()->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() ) )
return true;
return false;
return m_playlistInterface->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() );
}