Merge pull request #8967 from noshyaar/pr-bug

CreateDialog: select root if search exactly match
This commit is contained in:
Rémi Verschelde 2017-05-28 09:28:57 +02:00 committed by GitHub
commit ba5098a123

View file

@ -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()) {