diff --git a/src/libtomahawk/MetaPlaylistInterface.cpp b/src/libtomahawk/MetaPlaylistInterface.cpp index 7d8940219..6cd93d1fa 100644 --- a/src/libtomahawk/MetaPlaylistInterface.cpp +++ b/src/libtomahawk/MetaPlaylistInterface.cpp @@ -52,6 +52,13 @@ MetaPlaylistInterface::addChildInterface( const Tomahawk::playlistinterface_ptr& } +void +MetaPlaylistInterface::removeChildInterface( const Tomahawk::playlistinterface_ptr& interface ) +{ + m_childInterfaces.removeAll( interface ); +} + + QList< Tomahawk::query_ptr > MetaPlaylistInterface::tracks() const { diff --git a/src/libtomahawk/MetaPlaylistInterface.h b/src/libtomahawk/MetaPlaylistInterface.h index cf7bb9030..8f51ff00e 100644 --- a/src/libtomahawk/MetaPlaylistInterface.h +++ b/src/libtomahawk/MetaPlaylistInterface.h @@ -38,6 +38,7 @@ public: virtual ~MetaPlaylistInterface(); void addChildInterface( const Tomahawk::playlistinterface_ptr& interface ); + void removeChildInterface( const Tomahawk::playlistinterface_ptr& interface ); virtual QList< Tomahawk::query_ptr > tracks() const; virtual int trackCount() const;