Browse Source

Merge pull request #14013 from qichunren/fix_project_rename_lost_focus

Fixed project name line edit lost input focus in project rename dialog.
Rémi Verschelde 7 years ago
parent
commit
a8ae46e143
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")) {
 				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();