diff options
author | dankan1890 <mewuidev2@gmail.com> | 2019-11-25 16:23:35 +0100 |
---|---|---|
committer | dankan1890 <mewuidev2@gmail.com> | 2019-11-25 16:23:35 +0100 |
commit | 4de9c51f23605dc06765bb6f2f4af26576bbc64d (patch) | |
tree | 45d94c377b90b05424dcfa2e68f6d7018cac4b52 | |
parent | 5ddce7a9df62a8c3bcd928a8dff703e4831fdc22 (diff) |
Fixed missing scrolling in Search Help Dialog.
Fix #33675
-rw-r--r-- | editor/editor_help_search.cpp | 6 | ||||
-rw-r--r-- | editor/editor_help_search.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/editor/editor_help_search.cpp b/editor/editor_help_search.cpp index 27e61362ed..517a1c34d1 100644 --- a/editor/editor_help_search.cpp +++ b/editor/editor_help_search.cpp @@ -170,7 +170,11 @@ void EditorHelpSearch::popup_dialog(const String &p_term) { if (p_term == "") { search_box->clear(); } else { - old_search = true; + if (old_term == p_term) + old_search = true; + else + old_term = p_term; + search_box->set_text(p_term); search_box->select_all(); } diff --git a/editor/editor_help_search.h b/editor/editor_help_search.h index 12ffd024a7..0be2f3419b 100644 --- a/editor/editor_help_search.h +++ b/editor/editor_help_search.h @@ -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; |