summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorqichunren <whyruby@gmail.com>2018-11-26 15:56:34 +0800
committerqichunren <whyruby@gmail.com>2018-11-26 15:56:34 +0800
commit1986cc1118e5b001d066d34df1da53f4e84ec8f4 (patch)
tree8f8603055c04378bc383fc04e8f08ecb3eb18d4b /editor
parent815557c81228efc9e74097b50590b2d091387059 (diff)
Fixed project name line edit focus lost when open project-create dialog.
This also select default project name text for convenience.
Diffstat (limited to 'editor')
-rw-r--r--editor/project_manager.cpp3
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) {