summaryrefslogtreecommitdiff
path: root/editor/plugins/version_control_editor_plugin.cpp
diff options
context:
space:
mode:
authorMikolaj Kaczmarek <m.kaczmarek9@gmail.com>2019-10-29 00:40:36 +0100
committerMikolaj Kaczmarek <m.kaczmarek9@gmail.com>2019-10-29 00:53:48 +0100
commita245bab78d70cdcfd6651a9a973abbaadda4994c (patch)
tree340efb836d091913597281ec59df2481abd6a16b /editor/plugins/version_control_editor_plugin.cpp
parent7d710a745e3eecbde482349fff78f0a4e14f6371 (diff)
Fixed disconnecting not connected signal
Diffstat (limited to 'editor/plugins/version_control_editor_plugin.cpp')
-rw-r--r--editor/plugins/version_control_editor_plugin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/plugins/version_control_editor_plugin.cpp b/editor/plugins/version_control_editor_plugin.cpp
index d4f985e1de..66b16b82a0 100644
--- a/editor/plugins/version_control_editor_plugin.cpp
+++ b/editor/plugins/version_control_editor_plugin.cpp
@@ -397,8 +397,9 @@ void VersionControlEditorPlugin::clear_stage_area() {
void VersionControlEditorPlugin::shut_down() {
if (EditorVCSInterface::get_singleton()) {
-
- EditorFileSystem::get_singleton()->disconnect("filesystem_changed", this, "_refresh_stage_area");
+ if (EditorFileSystem::get_singleton()->is_connected("filesystem_changed", this, "_refresh_stage_area")) {
+ EditorFileSystem::get_singleton()->disconnect("filesystem_changed", this, "_refresh_stage_area");
+ }
EditorVCSInterface::get_singleton()->shut_down();
memdelete(EditorVCSInterface::get_singleton());
EditorVCSInterface::set_singleton(NULL);