Merge pull request #37825 from qarmin/leak_with_drives

Fixes leak with drives [3.2]
This commit is contained in:
Rémi Verschelde 2020-04-13 00:44:03 +02:00 committed by GitHub
commit 36a30f681f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -1557,6 +1557,7 @@ EditorFileDialog::EditorFileDialog() {
drives = memnew(OptionButton); drives = memnew(OptionButton);
drives->connect("item_selected", this, "_select_drive"); drives->connect("item_selected", this, "_select_drive");
pathhb->add_child(drives);
dir = memnew(LineEdit); dir = memnew(LineEdit);
pathhb->add_child(dir); pathhb->add_child(dir);

View File

@ -916,6 +916,7 @@ FileDialog::FileDialog() {
drives = memnew(OptionButton); drives = memnew(OptionButton);
drives->connect("item_selected", this, "_select_drive"); drives->connect("item_selected", this, "_select_drive");
hbc->add_child(drives);
dir = memnew(LineEdit); dir = memnew(LineEdit);
hbc->add_child(dir); hbc->add_child(dir);