mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Connect textChanged signal instead of textEdited, so the search results are updated (cleared) also when clear button is pressed
(cherry picked from commit 33b0c84f03
)
This commit is contained in:
parent
7dfbc2d2e1
commit
6fc02c364a
@ -134,7 +134,7 @@ GlobalSearchWidget::GlobalSearchWidget(QWidget* parent)
|
||||
next_suggestion_timer_->setInterval(kSuggestionTimeoutMsec);
|
||||
hint_text_ = ui_->search->hint();
|
||||
|
||||
connect(ui_->search, SIGNAL(textEdited(QString)), SLOT(TextEdited(QString)));
|
||||
connect(ui_->search, SIGNAL(textChanged(QString)), SLOT(TextEdited(QString)));
|
||||
connect(view_, SIGNAL(doubleClicked(QModelIndex)), SLOT(ResultDoubleClicked()));
|
||||
connect(view_->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
||||
SLOT(UpdateTooltip()));
|
||||
|
Loading…
Reference in New Issue
Block a user