Skip to content

Commit 8275938

Browse files
committed
Merge pull request godotengine#102444 from ryevdokimov/save-confirmation-don't-reparent-to-self
Prevent save confirmation dialog from trying to parent to itself
2 parents 819874b + 1c384e7 commit 8275938

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editor/editor_node.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5734,7 +5734,9 @@ void EditorNode::_cancel_close_scene_tab() {
57345734
}
57355735

57365736
void EditorNode::_prepare_save_confirmation_popup() {
5737-
save_confirmation->reparent(get_last_exclusive_window());
5737+
if (save_confirmation->get_window() != get_last_exclusive_window()) {
5738+
save_confirmation->reparent(get_last_exclusive_window());
5739+
}
57385740
}
57395741

57405742
void EditorNode::_toggle_distraction_free_mode() {

0 commit comments

Comments
 (0)