summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Vodopiviz <ivanvodo@gmail.com>2018-03-04 23:27:18 +0100
committerIvan Vodopiviz <ivanvodo@gmail.com>2018-03-04 23:27:18 +0100
commit68a424113194534b879b7d616079ed53bfc9a9a1 (patch)
treeb6d58bf3f3887c5d0c34b50b4864d4e2645dc055
parente619727e999ecd8e6883330f2c6950cd0624de99 (diff)
Fix new Node dialog Create button behavior
Added a one-liner to update the Create button disabled state when selecting an item from the search results list. Fixes #17265, long live the Realm!
-rw-r--r--editor/create_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index fdc58e6292..13ef6e9e0e 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -476,6 +476,8 @@ void CreateDialog::_item_selected() {
return;
help_bit->set_text(EditorHelp::get_doc_data()->class_list[name].brief_description);
+
+ get_ok()->set_disabled(false);
}
void CreateDialog::_favorite_toggled() {