Преглед изворни кода

Merge pull request #8967 from noshyaar/pr-bug

CreateDialog: select root if search exactly match
Rémi Verschelde пре 8 година
родитељ
комит
ba5098a123
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      editor/create_dialog.cpp

+ 1 - 1
editor/create_dialog.cpp

@@ -203,7 +203,7 @@ void CreateDialog::_update_search() {
 	}
 	}
 
 
 	List<StringName>::Element *I = type_list.front();
 	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()) {
 	for (; I; I = I->next()) {