Browse Source

Fixed empty item slipping into Search Classes dialog

Fixed empty item slipping into Search Classes dialog.

Phew tracking this down was weird.
DualMatrix 7 years ago
parent
commit
c1674f1068
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/editor_help.cpp

+ 2 - 0
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;