summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2020-04-06 20:07:08 +0200
committerqarmin <mikrutrafal54@gmail.com>2020-04-06 20:07:08 +0200
commit5cbab8156477e107405e997cda024d1185b1933b (patch)
tree9feb3fdaa56f8673b853a7927414cfe4d1cdc360 /scene
parent94fab213482fd944debc50e255e7b395d391cc33 (diff)
Fixes leaks when running editor
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/dialogs.cpp1
-rw-r--r--scene/gui/file_dialog.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp
index 2e87a92969..5654219a3e 100644
--- a/scene/gui/dialogs.cpp
+++ b/scene/gui/dialogs.cpp
@@ -322,7 +322,6 @@ AcceptDialog::AcceptDialog() {
label->set_end(Point2(-margin, -button_margin - 10));
add_child(label);
- hbc = memnew(HBoxContainer);
add_child(hbc);
hbc->add_spacer();
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp
index 905af399b3..3d0812e991 100644
--- a/scene/gui/file_dialog.cpp
+++ b/scene/gui/file_dialog.cpp
@@ -909,6 +909,7 @@ FileDialog::FileDialog() {
drives = memnew(OptionButton);
drives->connect("item_selected", callable_mp(this, &FileDialog::_select_drive));
+ hbc->add_child(drives);
dir = memnew(LineEdit);
hbc->add_child(dir);