Skip to content

Commit

Permalink
TODOs Library sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jan 30, 2023
1 parent e6c4adf commit b607fb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/library/itunes/itunesfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ QVariant ITunesFeature::title() {
}

void ITunesFeature::bindSidebarWidget(WLibrarySidebar* pSidebarWidget) {
// TODO(XXX) Isn't this redundant?
// store the sidebar widget pointer for later use in onRightClick()
m_pSidebarWidget = pSidebarWidget;
// send it to BaseExternalLibraryFeature for onRightClickChild()
Expand Down
2 changes: 2 additions & 0 deletions src/library/trackset/crate/cratefeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ QModelIndex CrateFeature::rebuildChildModel(CrateId selectedCrateId) {
// Update rendering of crates depending on the currently selected track
slotTrackSelected(m_selectedTrackId);

// actually this filter is obsolete because TreeItemModel::index returns QModelIndex()
// if it can't create the new index for whatever reason
if (selectedRow >= 0) {
return m_pSidebarModel->index(selectedRow, 0);
} else {
Expand Down

0 comments on commit b607fb8

Please sign in to comment.