From ba9d29ec6267587100656dc320d84ca4dde8a205 Mon Sep 17 00:00:00 2001 From: Chaosus Date: Thu, 25 Oct 2018 13:20:45 +0300 Subject: [PATCH] Fix segfault on editor close up --- editor/filesystem_dock.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 701f10ca00c..ef960f74ea6 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -353,7 +353,9 @@ void FileSystemDock::_notification(int p_what) { } break; case NOTIFICATION_THEME_CHANGED: { - _update_display_mode(true); + if (tree->is_visible_in_tree()) { + _update_display_mode(true); + } } break; case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { // Update icons