summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-12-19 09:55:01 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-12-19 09:58:02 -0300
commit1eb1837d0cf95c2c12d8ec51127e222f6f4888c5 (patch)
tree4dde3abbe494f244efdc5f308c8d97439a80d266 /editor
parent49eea481ec962111f1436564096fdbe64d06de9c (diff)
Should no longer crash after rebaking, may be a solution to #14795
Not sure if this is the same problem, as reported, please test.
Diffstat (limited to 'editor')
-rw-r--r--editor/progress_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/progress_dialog.cpp b/editor/progress_dialog.cpp
index 2c2e5a7c9b..e02925e377 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) {