From 656cc83aa0cc355b3937a4a7caa20e1ffe39f69b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 8 Jan 2020 17:45:10 +0100 Subject: [PATCH] Export: Fix leak or orphaned Controls after #34911 They need to be hidden but still in tree. --- editor/project_export.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/editor/project_export.cpp b/editor/project_export.cpp index d01ea49d665..8245264e0d4 100644 --- a/editor/project_export.cpp +++ b/editor/project_export.cpp @@ -1178,11 +1178,13 @@ ProjectExportDialog::ProjectExportDialog() { // Patch packages. 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. // The rest of the code is still kept for now, in the hope that it will be made // functional and reactivated. - //sections->add_child(patch_vb); - patch_vb->set_name(TTR("Patches")); + patch_vb->hide(); patches = memnew(Tree); patch_vb->add_child(patches);