diff options
| author | Rémi Verschelde | 2015-11-24 23:55:44 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2015-11-24 23:55:44 +0100 |
| commit | 5db398f67f695cd9b97d9ddefe9f80859ded4026 (patch) | |
| tree | a71419d43ff5d336a78f079f065d5e62aa6f6980 /tools/editor/plugins/script_editor_plugin.cpp | |
| parent | 36ef5cd7bc966ff8af2a275fd1fd5ae639f9cc76 (diff) | |
| parent | 660e831e3669f3dff120233549d963b49bf4d76b (diff) | |
| download | godot-5db398f67f695cd9b97d9ddefe9f80859ded4026.tar.gz godot-5db398f67f695cd9b97d9ddefe9f80859ded4026.tar.zst godot-5db398f67f695cd9b97d9ddefe9f80859ded4026.zip | |
Diffstat (limited to 'tools/editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 6413ca126..1b66cde85 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -885,14 +885,13 @@ void ScriptEditor::_menu_option(int p_option) { } break; case SEARCH_CLASSES: { - if (tab_container->get_tab_count()==0) - break; - String current; - EditorHelp *eh = tab_container->get_child( tab_container->get_current_tab() )->cast_to<EditorHelp>(); - if (eh) { - current=eh->get_class_name(); + 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); |
