diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2019-10-22 16:01:11 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2019-10-22 16:01:11 +0300 |
commit | d7d72aeeece572d56ebb475057a65af1b9e5768d (patch) | |
tree | 13ccc75c241d8cc48e05620293212a9dc9025c1c | |
parent | 2906cef290c8af61f84e26c889963d355f9e9834 (diff) |
Prevents segfault on _class_desc_resized at exit
-rw-r--r-- | editor/editor_help.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index e4f64597b1..690538f44c 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; } |