diff --git a/editor/editor_file_dialog.cpp b/editor/editor_file_dialog.cpp index 8f6a89cce5a..98b4768cdb9 100644 --- a/editor/editor_file_dialog.cpp +++ b/editor/editor_file_dialog.cpp @@ -1557,6 +1557,7 @@ EditorFileDialog::EditorFileDialog() { drives = memnew(OptionButton); drives->connect("item_selected", this, "_select_drive"); + pathhb->add_child(drives); dir = memnew(LineEdit); pathhb->add_child(dir); diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp index fc06f4bf3c4..84584756e92 100644 --- a/scene/gui/file_dialog.cpp +++ b/scene/gui/file_dialog.cpp @@ -916,6 +916,7 @@ FileDialog::FileDialog() { drives = memnew(OptionButton); drives->connect("item_selected", this, "_select_drive"); + hbc->add_child(drives); dir = memnew(LineEdit); hbc->add_child(dir);