Merge pull request #23273 from Chaosus/fix_segfault

Fix segfault on editor close up
This commit is contained in:
Rémi Verschelde 2018-10-25 13:03:40 +02:00 committed by GitHub
commit 7d296a638c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -353,7 +353,9 @@ void FileSystemDock::_notification(int p_what) {
} break; } break;
case NOTIFICATION_THEME_CHANGED: { case NOTIFICATION_THEME_CHANGED: {
_update_display_mode(true); if (tree->is_visible_in_tree()) {
_update_display_mode(true);
}
} break; } break;
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
// Update icons // Update icons