Browse Source

Fixed project name line edit lost input focus.

qichunren 8 years ago
parent
commit
7d1c3b5391
1 changed files with 2 additions and 1 deletions
  1. 2 1
      editor/project_manager.cpp

+ 2 - 1
editor/project_manager.cpp

@@ -508,7 +508,8 @@ public:
 			} else if (current->has_setting("application/config/name")) {
 			} else if (current->has_setting("application/config/name")) {
 				project_name->set_text(current->get("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();
 			create_dir->hide();
 			status_btn->hide();
 			status_btn->hide();