diff options
| author | Juan Linietsky | 2017-12-19 09:55:01 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-12-19 09:58:02 -0300 |
| commit | 1eb1837d0cf95c2c12d8ec51127e222f6f4888c5 (patch) | |
| tree | 4dde3abbe494f244efdc5f308c8d97439a80d266 /editor/progress_dialog.cpp | |
| parent | 49eea481ec962111f1436564096fdbe64d06de9c (diff) | |
| download | godot-1eb1837d0cf95c2c12d8ec51127e222f6f4888c5.tar.gz godot-1eb1837d0cf95c2c12d8ec51127e222f6f4888c5.tar.zst godot-1eb1837d0cf95c2c12d8ec51127e222f6f4888c5.zip | |
Diffstat (limited to 'editor/progress_dialog.cpp')
| -rw-r--r-- | editor/progress_dialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/progress_dialog.cpp b/editor/progress_dialog.cpp index 2c2e5a7c9..e02925e37 100644 --- a/editor/progress_dialog.cpp +++ b/editor/progress_dialog.cpp @@ -188,6 +188,9 @@ void ProgressDialog::add_task(const String &p_task, const String &p_label, int p cancel_hb->raise(); cancelled = false; _popup(); + if (p_can_cancel) { + cancel->grab_focus(); + } } bool ProgressDialog::task_step(const String &p_task, const String &p_state, int p_step, bool p_force_redraw) { |
