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:
@@ -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() );
|
||||
}
|
||||
|
Reference in New Issue
Block a user