summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-25 13:03:40 +0200
committerGitHub <noreply@github.com>2018-10-25 13:03:40 +0200
commit7d296a638c693f0961f65c4af86c0cbc62c5bb50 (patch)
treece1cea627c4a45565c54d91d1262b0a2b356555d
parentd7b5ca09f7c21ec14f265700e47a1a1ff61111b6 (diff)
parentba9d29ec6267587100656dc320d84ca4dde8a205 (diff)
Merge pull request #23273 from Chaosus/fix_segfault
Fix segfault on editor close up
-rw-r--r--editor/filesystem_dock.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index 701f10ca00..ef960f74ea 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