diff options
author | Mikolaj Kaczmarek <m.kaczmarek9@gmail.com> | 2019-10-29 00:40:36 +0100 |
---|---|---|
committer | Mikolaj Kaczmarek <m.kaczmarek9@gmail.com> | 2019-10-29 00:53:48 +0100 |
commit | a245bab78d70cdcfd6651a9a973abbaadda4994c (patch) | |
tree | 340efb836d091913597281ec59df2481abd6a16b /editor/editor_dir_dialog.cpp | |
parent | 7d710a745e3eecbde482349fff78f0a4e14f6371 (diff) | |
download | redot-engine-a245bab78d70cdcfd6651a9a973abbaadda4994c.tar.gz |
Fixed disconnecting not connected signal
Diffstat (limited to 'editor/editor_dir_dialog.cpp')
-rw-r--r-- | editor/editor_dir_dialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_dir_dialog.cpp b/editor/editor_dir_dialog.cpp index 0636ae3aea..525c5aa62d 100644 --- a/editor/editor_dir_dialog.cpp +++ b/editor/editor_dir_dialog.cpp @@ -95,7 +95,9 @@ void EditorDirDialog::_notification(int p_what) { } if (p_what == NOTIFICATION_EXIT_TREE) { - EditorFileSystem::get_singleton()->disconnect("filesystem_changed", this, "reload"); + if (EditorFileSystem::get_singleton()->is_connected("filesystem_changed", this, "reload")) { + EditorFileSystem::get_singleton()->disconnect("filesystem_changed", this, "reload"); + } } if (p_what == NOTIFICATION_VISIBILITY_CHANGED) { |