summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-12-07 13:26:23 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2021-12-07 14:18:54 +0300
commitc34e806426e91fb064452f60b0152f62f60447dd (patch)
tree1ffea6b9e84bc11df2e2f3156a670e6fb8b4893e
parent3ed2bd13adaf7ee4dc162f623699d46fd3326775 (diff)
Fix error emitting when called new shader dialog from resource dialog
-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();
}