Disable remove favorites from context menu in internetsongsview

This commit is contained in:
Jonas Kvinge
2019-06-19 23:26:15 +02:00
parent 4f2b04bd8f
commit 033300d659
4 changed files with 20 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ class InternetCollectionView : public AutoExpandingTreeView {
InternetCollectionView(QWidget *parent = nullptr);
~InternetCollectionView();
void Init(Application *app, CollectionBackend *backend, CollectionModel *model);
void Init(Application *app, CollectionBackend *backend, CollectionModel *model, const bool favorite = false);
// Returns Songs currently selected in the collection view.
// Please note that the selection is recursive meaning that if for example an album is selected this will return all of it's songs.
@@ -115,6 +115,7 @@ class InternetCollectionView : public AutoExpandingTreeView {
CollectionBackend *collection_backend_;
CollectionModel*collection_model_;
CollectionFilterWidget *filter_;
bool favorite_;
int total_song_count_;
int total_artist_count_;