From d7d72aeeece572d56ebb475057a65af1b9e5768d Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Tue, 22 Oct 2019 16:01:11 +0300 Subject: [PATCH] Prevents segfault on _class_desc_resized at exit --- editor/editor_help.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index e4f64597b1a..690538f44cd 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -1468,8 +1468,9 @@ void EditorHelp::_notification(int p_what) { _update_doc(); } break; case NOTIFICATION_THEME_CHANGED: { - - _class_desc_resized(); + if (is_visible_in_tree()) { + _class_desc_resized(); + } } break; default: break; }