瀏覽代碼

Merge pull request #34919 from akien-mga/export-fix-leak-34911

Export: Fix leak or orphaned Controls after #34911
Rémi Verschelde 5 年之前
父節點
當前提交
98222130bf
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      editor/project_export.cpp

+ 4 - 2
editor/project_export.cpp

@@ -1178,11 +1178,13 @@ ProjectExportDialog::ProjectExportDialog() {
 	// Patch packages.
 	// Patch packages.
 
 
 	VBoxContainer *patch_vb = memnew(VBoxContainer);
 	VBoxContainer *patch_vb = memnew(VBoxContainer);
+	sections->add_child(patch_vb);
+	patch_vb->set_name(TTR("Patches"));
+
 	// FIXME: Patching support doesn't seem properly implemented yet, so we hide it.
 	// FIXME: Patching support doesn't seem properly implemented yet, so we hide it.
 	// The rest of the code is still kept for now, in the hope that it will be made
 	// The rest of the code is still kept for now, in the hope that it will be made
 	// functional and reactivated.
 	// functional and reactivated.
-	//sections->add_child(patch_vb);
-	patch_vb->set_name(TTR("Patches"));
+	patch_vb->hide();
 
 
 	patches = memnew(Tree);
 	patches = memnew(Tree);
 	patch_vb->add_child(patches);
 	patch_vb->add_child(patches);