From 1986cc1118e5b001d066d34df1da53f4e84ec8f4 Mon Sep 17 00:00:00 2001 From: qichunren Date: Mon, 26 Nov 2018 15:56:34 +0800 Subject: [PATCH] Fixed project name line edit focus lost when open project-create dialog. This also select default project name text for convenience. --- editor/project_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 8c906e5f0b5..1ad093a1e83 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -745,7 +745,8 @@ public: get_ok()->set_text(TTR("Create & Edit")); name_container->show(); install_path_container->hide(); - project_name->grab_focus(); + project_name->call_deferred("grab_focus"); + project_name->call_deferred("select_all"); } else if (mode == MODE_INSTALL) {