2
0
Эх сурвалжийг харах

Prevent save confirmation dialog from trying to parent to itself

Robert Yevdokimov 8 сар өмнө
parent
commit
1c384e7b78

+ 3 - 1
editor/editor_node.cpp

@@ -5734,7 +5734,9 @@ void EditorNode::_cancel_close_scene_tab() {
 }
 
 void EditorNode::_prepare_save_confirmation_popup() {
-	save_confirmation->reparent(get_last_exclusive_window());
+	if (save_confirmation->get_window() != get_last_exclusive_window()) {
+		save_confirmation->reparent(get_last_exclusive_window());
+	}
 }
 
 void EditorNode::_toggle_distraction_free_mode() {