Forráskód Böngészése

Prevent save confirmation dialog from trying to parent to itself

Robert Yevdokimov 8 hónapja
szülő
commit
1c384e7b78
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      editor/editor_node.cpp

+ 3 - 1
editor/editor_node.cpp

@@ -5734,7 +5734,9 @@ void EditorNode::_cancel_close_scene_tab() {
 }
 }
 
 
 void EditorNode::_prepare_save_confirmation_popup() {
 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() {
 void EditorNode::_toggle_distraction_free_mode() {