Skip to content

Commit

Permalink
WSearchLineEdit: use lineEdit()->clear() instead of setText("")
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Feb 17, 2021
1 parent 973e836 commit 619f9fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widget/wsearchlineedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ void WSearchLineEdit::slotClearSearch() {
// before returning the whole (and probably huge) library.
// No need to manually trigger a search at this point!
// See also: https://bugs.launchpad.net/mixxx/+bug/1635087
// Note that clear() would not just clear the line edit but
// erase all combobox items, thus clear the entire search history.
setCurrentText("");
// Note that just clear() would also erase all combobox items,
// thus clear the entire search history.
lineEdit()->clear();
// Refocus the edit field
setFocus(Qt::OtherFocusReason);
}
Expand Down

0 comments on commit 619f9fc

Please sign in to comment.