summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-01-09 16:15:16 +0100
committerRémi Verschelde <rverschelde@gmail.com>2018-01-09 16:15:22 +0100
commit29ae3e5f33b7afa382c277b342bb00a1ee5aa5a8 (patch)
treeb382927c0c98b46f32aaeac164844062ddeddbe6
parente1c799f1b41211f2d0dc1f5adbdffed43727b99a (diff)
Revert "Fix "Attach Node Script" inherits popup type"
This reverts commit 227238b4246d335910c364188ce9233fc70ddc65. This dialog is used to both open and create scripts, so it needs to have the features of the save dialog.
-rw-r--r--editor/script_create_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp
index f1f1dd0403..cee356b930 100644
--- a/editor/script_create_dialog.cpp
+++ b/editor/script_create_dialog.cpp
@@ -307,7 +307,7 @@ void ScriptCreateDialog::_browse_path(bool browse_parent) {
is_browsing_parent = browse_parent;
- file_browse->set_mode(EditorFileDialog::MODE_OPEN_FILE);
+ file_browse->set_mode(EditorFileDialog::MODE_SAVE_FILE);
file_browse->set_disable_overwrite_warning(true);
file_browse->clear_filters();
List<String> extensions;