summaryrefslogtreecommitdiff
path: root/tools/editor/reparent_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/reparent_dialog.cpp')
-rw-r--r--tools/editor/reparent_dialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/editor/reparent_dialog.cpp b/tools/editor/reparent_dialog.cpp
index d35316f67f..6d0c5b867e 100644
--- a/tools/editor/reparent_dialog.cpp
+++ b/tools/editor/reparent_dialog.cpp
@@ -41,6 +41,11 @@ void ReparentDialog::_notification(int p_what) {
connect("confirmed", this,"_reparent");
}
+ if (p_what==NOTIFICATION_EXIT_TREE) {
+
+ disconnect("confirmed", this,"_reparent");
+ }
+
if (p_what==NOTIFICATION_DRAW) {
//RID ci = get_canvas_item();