diff options
author | Vincenzo Greco <greco.vincenzo@gmail.com> | 2018-01-08 11:44:56 +0100 |
---|---|---|
committer | Vincenzo Greco <greco.vincenzo@gmail.com> | 2018-01-08 16:46:36 +0100 |
commit | 586e7351252b8c0a3c29b31e51c0959e76f4a531 (patch) | |
tree | da9f372da861a98f80a9359667a8efa9218edcf9 /editor | |
parent | c791c1d48ec7dc4df30f4778eb007ad05b3686bf (diff) |
Select root node if search_box is empty in create_dialog
Diffstat (limited to 'editor')
-rw-r--r-- | editor/create_dialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index 2dfb01826a..b2a8c7e72e 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -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); |