diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-10-25 13:03:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 13:03:40 +0200 |
commit | 7d296a638c693f0961f65c4af86c0cbc62c5bb50 (patch) | |
tree | ce1cea627c4a45565c54d91d1262b0a2b356555d | |
parent | d7b5ca09f7c21ec14f265700e47a1a1ff61111b6 (diff) | |
parent | ba9d29ec6267587100656dc320d84ca4dde8a205 (diff) |
Merge pull request #23273 from Chaosus/fix_segfault
Fix segfault on editor close up
-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 |