1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix Class Search dialog not showing up

This commit is contained in:
neikeq
2015-11-24 22:59:44 +01:00
parent c731dd1ba6
commit 660e831e36

View File

@@ -885,15 +885,14 @@ void ScriptEditor::_menu_option(int p_option) {
} break;
case SEARCH_CLASSES: {
if (tab_container->get_tab_count()==0)
break;
String current;
if (tab_container->get_tab_count()>0) {
EditorHelp *eh = tab_container->get_child( tab_container->get_current_tab() )->cast_to<EditorHelp>();
if (eh) {
current=eh->get_class_name();
}
}
help_index->popup_centered_ratio(0.6);