From 5cbab8156477e107405e997cda024d1185b1933b Mon Sep 17 00:00:00 2001 From: qarmin Date: Mon, 6 Apr 2020 20:07:08 +0200 Subject: Fixes leaks when running editor --- scene/gui/file_dialog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene/gui/file_dialog.cpp') 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); -- cgit v1.2.3