From 1eb1837d0cf95c2c12d8ec51127e222f6f4888c5 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 19 Dec 2017 09:55:01 -0300 Subject: Should no longer crash after rebaking, may be a solution to #14795 Not sure if this is the same problem, as reported, please test. --- editor/progress_dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editor') 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) { -- cgit v1.2.3