Преглед на файлове

CreateDialog: select root if search exactly match

Poommetee Ketson преди 8 години
родител
ревизия
9fb90d7aea
променени са 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();
-	TreeItem *to_select = NULL;
+	TreeItem *to_select = search_box->get_text() == base_type ? root : NULL;
 
 	for (; I; I = I->next()) {