1
0
Fork 0

Merge pull request #102237 from KoBeWi/outside_tree_no_one_can_see_your_progress

Fix crash when ProgressDialog is outside tree
This commit is contained in:
Thaddeus Crews 2025-02-03 08:16:04 -06:00
commit 79d6cdf831
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
1 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,8 @@ void ProgressDialog::_popup() {
center_panel->set_custom_minimum_size(ms);
Window *current_window = get_last_exclusive_window();
Window *current_window = SceneTree::get_singleton()->get_root()->get_last_exclusive_window();
ERR_FAIL_NULL(current_window);
reparent(current_window);
// Ensures that events are properly released before the dialog blocks input.