summaryrefslogtreecommitdiff
path: root/editor/script_create_dialog.cpp
diff options
context:
space:
mode:
authorLikeLakers2 <1008889+LikeLakers2@users.noreply.github.com>2019-06-29 17:20:10 -0400
committerLikeLakers2 <1008889+LikeLakers2@users.noreply.github.com>2019-06-29 23:18:37 -0400
commit4961db8e8871e430ad54306a26655d2dce3292a6 (patch)
tree0dd6069b1924d04fdcec9a40dc70a206f5325ced /editor/script_create_dialog.cpp
parent3942c939e3ed152d4cf9647411f34d1bc14cdec2 (diff)
ScriptCreateDialog should emit the script_changed signal first
Diffstat (limited to 'editor/script_create_dialog.cpp')
-rw-r--r--editor/script_create_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp
index ffa221edaf..8916f4d8c4 100644
--- a/editor/script_create_dialog.cpp
+++ b/editor/script_create_dialog.cpp
@@ -286,8 +286,8 @@ void ScriptCreateDialog::_create_new() {
}
}
- hide();
emit_signal("script_created", scr);
+ hide();
}
void ScriptCreateDialog::_load_exist() {
@@ -300,8 +300,8 @@ void ScriptCreateDialog::_load_exist() {
return;
}
- hide();
emit_signal("script_created", p_script.get_ref_ptr());
+ hide();
}
void ScriptCreateDialog::_lang_changed(int l) {