1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Should no longer crash after rebaking, may be a solution to #14795

Not sure if this is the same problem, as reported, please test.
This commit is contained in:
Juan Linietsky
2017-12-19 09:55:01 -03:00
parent 49eea481ec
commit 1eb1837d0c
3 changed files with 18 additions and 9 deletions

View File

@@ -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) {