From 7645c539c8573e90536337dfed7e6d8e834d496c Mon Sep 17 00:00:00 2001 From: Ivan Vodopiviz Date: Sun, 4 Mar 2018 23:27:18 +0100 Subject: [PATCH] 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! (cherry picked from commit 68a424113194534b879b7d616079ed53bfc9a9a1) --- editor/create_dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index fdc58e62926..13ef6e9e0e8 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() {