From 9fb90d7aea70a645bcc3987387f4cd048b8413fe Mon Sep 17 00:00:00 2001 From: Poommetee Ketson Date: Sun, 28 May 2017 12:53:11 +0700 Subject: [PATCH] CreateDialog: select root if search exactly match --- editor/create_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index c5cfea0b953..641993bf057 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -203,7 +203,7 @@ void CreateDialog::_update_search() { } List::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()) {