diff options
Diffstat (limited to 'src/library/banshee/bansheefeature.cpp')
-rw-r--r-- | src/library/banshee/bansheefeature.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/library/banshee/bansheefeature.cpp b/src/library/banshee/bansheefeature.cpp index fad33e0e67..732dcd80ec 100644 --- a/src/library/banshee/bansheefeature.cpp +++ b/src/library/banshee/bansheefeature.cpp @@ -5,6 +5,8 @@ #include "library/banshee/bansheefeature.h" #include "library/banshee/bansheedbconnection.h" +#include "library/library.h" +#include "library/trackcollectionmanager.h" #include "library/dao/settingsdao.h" #include "library/baseexternalplaylistmodel.h" #include "library/banshee/bansheeplaylistmodel.h" @@ -13,15 +15,12 @@ const QString BansheeFeature::BANSHEE_MOUNT_KEY = "mixxx.BansheeFeature.mount"; QString BansheeFeature::m_databaseFile; -BansheeFeature::BansheeFeature(QObject* parent, - TrackCollection* pTrackCollection, - UserSettingsPointer pConfig) - : BaseExternalLibraryFeature(parent, pTrackCollection), - m_pTrackCollection(pTrackCollection), +BansheeFeature::BansheeFeature(Library* pLibrary, UserSettingsPointer pConfig) + : BaseExternalLibraryFeature(pLibrary, std::move(pConfig)), m_cancelImport(false), m_icon(":/images/library/ic_library_banshee.svg") { Q_UNUSED(pConfig); - m_pBansheePlaylistModel = new BansheePlaylistModel(this, m_pTrackCollection, &m_connection); + m_pBansheePlaylistModel = new BansheePlaylistModel(this, m_pLibrary->trackCollections(), &m_connection); m_isActivated = false; m_title = tr("Banshee"); } @@ -138,7 +137,7 @@ void BansheeFeature::appendTrackIdsFromRightClickIndex(QList<TrackId>* trackIds, int playlistID = item->getData().toInt(); qDebug() << "BansheeFeature::appendTrackIdsFromRightClickIndex " << *pPlaylist << " " << playlistID; if (playlistID > 0) { - BansheePlaylistModel* pPlaylistModelToAdd = new BansheePlaylistModel(this, m_pTrackCollection, &m_connection); + BansheePlaylistModel* pPlaylistModelToAdd = new BansheePlaylistModel(this, m_pLibrary->trackCollections(), &m_connection); pPlaylistModelToAdd->setTableModel(playlistID); pPlaylistModelToAdd->select(); |