Select root node if search_box is empty in create_dialog

This commit is contained in:
Vincenzo Greco 2018-01-08 11:44:56 +01:00
parent c791c1d48e
commit 586e735125
1 changed files with 4 additions and 0 deletions

View File

@ -312,6 +312,10 @@ void CreateDialog::_update_search() {
}
}
if (search_box->get_text() == "") {
to_select = root;
}
if (to_select) {
to_select->select(0);
search_options->scroll_to_item(to_select);