Skip to content

Commit

Permalink
fixup! Library: keep selection when search is less specific
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jan 7, 2022
1 parent 400bb8f commit a381d33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/widget/wtracktableview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ void WTrackTableView::setSelectedTracks(const QList<TrackId>& trackIds) {
}
}

bool WTrackTableView::setCurrentTrackId(const TrackId& trackId, const int column = 0) {
bool WTrackTableView::setCurrentTrackId(const TrackId& trackId, int column) {
QItemSelectionModel* pSelectionModel = selectionModel();
VERIFY_OR_DEBUG_ASSERT(pSelectionModel != nullptr) {
qWarning() << "No selected tracks available";
Expand Down
2 changes: 1 addition & 1 deletion src/widget/wtracktableview.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class WTrackTableView : public WLibraryTableView {
QList<TrackId> getSelectedTrackIds() const;
void setSelectedTracks(const QList<TrackId>& tracks);
TrackId getCurrentTrackId() const;
bool setCurrentTrackId(const TrackId& trackId, const int column);
bool setCurrentTrackId(const TrackId& trackId, int column = 0);

double getBackgroundColorOpacity() const {
return m_backgroundColorOpacity;
Expand Down

0 comments on commit a381d33

Please sign in to comment.