From c1674f1068f0a14390270c36d692bd3f4550b8bd Mon Sep 17 00:00:00 2001 From: DualMatrix Date: Mon, 17 Sep 2018 00:17:07 +0200 Subject: [PATCH] Fixed empty item slipping into Search Classes dialog Fixed empty item slipping into Search Classes dialog. Phew tracking this down was weird. --- editor/editor_help.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 728c4affbd2..60040f641b1 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -752,6 +752,8 @@ Error EditorHelp::_goto_desc(const String &p_class, int p_vscr) { } void EditorHelp::_update_doc() { + if (!doc->class_list.has(edited_class)) + return; scroll_locked = true;