summaryrefslogtreecommitdiff
path: root/editor/create_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/create_dialog.cpp')
-rw-r--r--editor/create_dialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index dec4f50f03..921c03e8ad 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -339,8 +339,10 @@ void CreateDialog::_confirmed() {
memdelete(f);
}
- emit_signal(SNAME("create"));
+ // To prevent, emitting an error from the transient window (shader dialog for example) hide this dialog before emitting the "create" signal.
hide();
+
+ emit_signal(SNAME("create"));
_cleanup();
}