diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-10 01:49:55 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-01-10 01:49:55 -0300 |
commit | 48097f6df364b040848fb8963f15738d760a72ed (patch) | |
tree | 8816df759d41837fb333bb4a0c7515e89f00e3d0 /tools/editor/editor_dir_dialog.cpp | |
parent | a503f8aadcb8cbc85bde589fb25ea06e599b367b (diff) | |
download | redot-engine-48097f6df364b040848fb8963f15738d760a72ed.tar.gz |
Removed the set_child_rect() in AcceptDialog. AcceptDialog now works as a container!
Diffstat (limited to 'tools/editor/editor_dir_dialog.cpp')
-rw-r--r-- | tools/editor/editor_dir_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/editor_dir_dialog.cpp b/tools/editor/editor_dir_dialog.cpp index c246506858..56f9a0fb0b 100644 --- a/tools/editor/editor_dir_dialog.cpp +++ b/tools/editor/editor_dir_dialog.cpp @@ -243,7 +243,7 @@ EditorDirDialog::EditorDirDialog() { tree = memnew( Tree ); add_child(tree); - set_child_rect(tree); + tree->connect("item_activated",this,"_ok"); makedir = add_button(TTR("Create Folder"),OS::get_singleton()->get_swap_ok_cancel()?true:false,"makedir"); @@ -255,7 +255,7 @@ EditorDirDialog::EditorDirDialog() { VBoxContainer *makevb= memnew( VBoxContainer ); makedialog->add_child(makevb); - makedialog->set_child_rect(makevb); +// makedialog->set_child_rect(makevb); makedirname = memnew( LineEdit ); makevb->add_margin_child(TTR("Name:"),makedirname); |