mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Use MetaPlaylistInterface to reduce code in ChartsWidget.
This commit is contained in:
@@ -143,13 +143,7 @@ ChartsWidget::playlistInterface() const
|
|||||||
bool
|
bool
|
||||||
ChartsWidget::isBeingPlayed() const
|
ChartsWidget::isBeingPlayed() const
|
||||||
{
|
{
|
||||||
if ( AudioEngine::instance()->currentTrackPlaylist() == ui->artistsViewLeft->proxyModel()->playlistInterface() )
|
if ( playlistInterface()->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() ) )
|
||||||
return true;
|
|
||||||
|
|
||||||
if ( AudioEngine::instance()->currentTrackPlaylist() == ui->tracksViewLeft->playlistInterface() )
|
|
||||||
return true;
|
|
||||||
|
|
||||||
if ( AudioEngine::instance()->currentTrackPlaylist() == ui->albumsView->playlistInterface() )
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user