Merge pull request #33887 from dankan1890/old_search_fix

Fixed missing scrolling in Search Help Dialog.
This commit is contained in:
Rémi Verschelde 2019-11-26 10:53:12 +01:00 committed by GitHub
commit ae04d23cce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -170,7 +170,11 @@ void EditorHelpSearch::popup_dialog(const String &p_term) {
if (p_term == "") {
search_box->clear();
} else {
if (old_term == p_term)
old_search = true;
else
old_term = p_term;
search_box->set_text(p_term);
search_box->select_all();
}

View file

@ -59,6 +59,7 @@ class EditorHelpSearch : public ConfirmationDialog {
OptionButton *filter_combo;
Tree *results_tree;
bool old_search;
String old_term;
class Runner;
Ref<Runner> search;