Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/library/trackset/baseplaylistfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@ void BasePlaylistFeature::updateChildModel(const QSet<int>& playlistIds) {
label = fetchPlaylistLabel(id);
pChild->setLabel(label);
decorateChild(pChild, id);
markTreeItem(pChild);
}
}
} else {
Expand All @@ -780,6 +781,7 @@ void BasePlaylistFeature::updateChildModel(const QSet<int>& playlistIds) {
label = fetchPlaylistLabel(id);
pTreeItem->setLabel(label);
decorateChild(pTreeItem, id);
markTreeItem(pTreeItem);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/library/trackset/baseplaylistfeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class BasePlaylistFeature : public BaseTrackSetFeature {
PlaylistTableModel* m_pPlaylistTableModel;
QSet<int> m_playlistIdsOfSelectedTrack;
const QString m_countsDurationTableName;
TrackId m_selectedTrackId;

private slots:
void slotTrackSelected(TrackId trackId);
Expand All @@ -129,7 +130,6 @@ class BasePlaylistFeature : public BaseTrackSetFeature {
void markTreeItem(TreeItem* pTreeItem);
QString fetchPlaylistLabel(int playlistId);

TrackId m_selectedTrackId;

const bool m_keepHiddenTracks;
};
3 changes: 3 additions & 0 deletions src/library/trackset/playlistfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ void PlaylistFeature::slotPlaylistContentOrLockChanged(const QSet<int>& playlist
idsToBeUpdated.insert(playlistId);
}
}
// Update the playlists set to allow toggling bold correctly after
// tracks have been dropped on sidebar items
m_playlistDao.getPlaylistsTrackIsIn(m_selectedTrackId, &m_playlistIdsOfSelectedTrack);
updateChildModel(idsToBeUpdated);
}

Expand Down