diff options
author | Chaosus <chaosus89@gmail.com> | 2018-10-25 13:20:45 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2018-10-25 13:33:46 +0300 |
commit | ba9d29ec6267587100656dc320d84ca4dde8a205 (patch) | |
tree | b4578eed013ea08f22fa6a46ebe9a056be3d33d5 /editor | |
parent | 1169196f0417ebaf5a83b7cd73f4efba3516eb45 (diff) |
Fix segfault on editor close up
Diffstat (limited to 'editor')
-rw-r--r-- | editor/filesystem_dock.cpp | 4 |
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 |