diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-22 18:42:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-22 18:42:46 +0200 |
commit | b6dea9469c1c8ba95e235f9cb3f5cd2ddd292d6b (patch) | |
tree | 766dd31b83404737ae1d3523be75250c6e411c1d /editor/editor_help.cpp | |
parent | 4ecc30cc5ed04c770efd79c2c9f2b1dc9ae0af39 (diff) | |
parent | d7d72aeeece572d56ebb475057a65af1b9e5768d (diff) |
Merge pull request #32985 from Chaosus/fix_bug
Prevents segfault on _class_desc_resized at exit
Diffstat (limited to 'editor/editor_help.cpp')
-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; } |