From 68a424113194534b879b7d616079ed53bfc9a9a1 Mon Sep 17 00:00:00 2001 From: Ivan Vodopiviz Date: Sun, 4 Mar 2018 23:27:18 +0100 Subject: 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! --- editor/create_dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() { -- cgit v1.2.3