summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDualMatrix <piet.goris@gmail.com>2018-09-17 00:17:07 +0200
committerDualMatrix <piet.goris@gmail.com>2018-09-17 12:41:47 +0200
commitc1674f1068f0a14390270c36d692bd3f4550b8bd (patch)
tree90e69f021e4b2057dfc9b06030ad25a7f791dc6d
parent5614692a1a82ef0ce6fa1d268903ff38787bd728 (diff)
Fixed empty item slipping into Search Classes dialog
Fixed empty item slipping into Search Classes dialog. Phew tracking this down was weird.
-rw-r--r--editor/editor_help.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index 728c4affbd..60040f641b 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;