Merge pull request #14013 from qichunren/fix_project_rename_lost_focus

Fixed project name line edit lost input focus in project rename dialog.
This commit is contained in:
Rémi Verschelde 2017-12-06 07:59:10 +01:00 committed by GitHub
commit a8ae46e143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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();