diff options
author | ronso0 <ronso0@mixxx.org> | 2022-01-07 21:24:37 +0100 |
---|---|---|
committer | ronso0 <ronso0@mixxx.org> | 2022-01-07 21:24:37 +0100 |
commit | a381d33f4ad246077bf216fed320b0d6c4400643 (patch) | |
tree | 1f106be9ebc2f4ffdd7fafc2bbfe10ed2ca04b9d | |
parent | 400bb8f1af93010e7e15dd6bee035b8170dcdb01 (diff) |
fixup! Library: keep selection when search is less specific
-rw-r--r-- | src/widget/wtracktableview.cpp | 2 | ||||
-rw-r--r-- | src/widget/wtracktableview.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/widget/wtracktableview.cpp b/src/widget/wtracktableview.cpp index 515854d00d..ee0c0ff111 100644 --- a/src/widget/wtracktableview.cpp +++ b/src/widget/wtracktableview.cpp @@ -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"; diff --git a/src/widget/wtracktableview.h b/src/widget/wtracktableview.h index f1b39abaaf..1f228ebeb9 100644 --- a/src/widget/wtracktableview.h +++ b/src/widget/wtracktableview.h @@ -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; |