summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editor/create_dialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index c5cfea0b95..1089068344 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -203,7 +203,7 @@ void CreateDialog::_update_search() {
}
List<StringName>::Element *I = type_list.front();
- TreeItem *to_select = NULL;
+ TreeItem *to_select = search_box->get_text() == base_type ? root : NULL;
for (; I; I = I->next()) {
@@ -489,11 +489,13 @@ void CreateDialog::_favorite_selected() {
void CreateDialog::_history_activated() {
+ _history_selected();
_confirmed();
}
void CreateDialog::_favorite_activated() {
+ _favorite_selected();
_confirmed();
}