Browse Source

Merge pull request #23273 from Chaosus/fix_segfault

Fix segfault on editor close up
Rémi Verschelde 6 years ago
parent
commit
7d296a638c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      editor/filesystem_dock.cpp

+ 3 - 1
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