mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-18 20:40:43 +01:00
Connect textChanged signal instead of textEdited, so the search results are updated (cleared) also when clear button is pressed
This commit is contained in:
parent
898e1e2ed1
commit
33b0c84f03
@ -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