diff options
author | ronso0 <ronso0@mixxx.org> | 2021-09-28 02:10:17 +0200 |
---|---|---|
committer | ronso0 <ronso0@mixxx.org> | 2021-09-30 23:35:43 +0200 |
commit | 0fe1e3d8291f0b2f6e998b5a9b03bafb7754e13a (patch) | |
tree | 7c42a41ab47eb526a50c6a722b07d277345ffaab /src/widget | |
parent | 3926fde35a0c5932fd15bb98c150a4c58dc36d92 (diff) |
Library: add control to clear the search, correct comments
Co-authored-by: daschuer <daschuer@mixxx.org>
Diffstat (limited to 'src/widget')
-rw-r--r-- | src/widget/wsearchlineedit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widget/wsearchlineedit.cpp b/src/widget/wsearchlineedit.cpp index 70791e8ae4..1fb28ce7b5 100644 --- a/src/widget/wsearchlineedit.cpp +++ b/src/widget/wsearchlineedit.cpp @@ -430,7 +430,8 @@ void WSearchLineEdit::slotSaveSearch() { void WSearchLineEdit::slotMoveSelectedHistory(int steps) { int nIndex = currentIndex() + steps; - // we wrap around to the last entry on backwards direction + // at the top we manually wrap around to the last entry. + // at the bottom wrap-around happens automatically due to invalid nIndex. if (nIndex < -1) { nIndex = count() - 1; } |