summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorqichunren <whyruby@gmail.com>2017-12-06 11:24:01 +0800
committerqichunren <whyruby@gmail.com>2017-12-06 11:24:01 +0800
commit7d1c3b5391539c43f82f9b78dcb4c9fbf137d654 (patch)
tree5b9373f2c3fc24d6a3a32dc00373c7afd1790bea /editor
parent7b02f5591d2a4c4d2d7da723b1303a99b6c4f168 (diff)
Fixed project name line edit lost input focus.
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 60d7e59991..b4d89526b0 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -508,7 +508,8 @@ public:
} else if (current->has_setting("application/config/name")) {
project_name->set_text(current->get("application/config/name"));
}
- project_name->grab_focus();
+
+ project_name->call_deferred("grab_focus");
create_dir->hide();
status_btn->hide();