diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-12-06 14:06:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 14:06:43 +0100 |
commit | efefe0be95a34eda142df9e2d051284b8fde4d96 (patch) | |
tree | f84dd9180961a4d46046315778773c7bb09e71ac | |
parent | ceb46e194cf763da304bc2486722b475efa7044f (diff) | |
parent | 1986cc1118e5b001d066d34df1da53f4e84ec8f4 (diff) |
Merge pull request #23982 from qichunren/fixed_line_edit_lost_focus_when_create_new_project
Fixed project name line edit focus lost when open project-create dialog.
-rw-r--r-- | editor/project_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 8c906e5f0b..1ad093a1e8 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) { |