diff options
| author | Hein-Pieter van Braam | 2017-08-22 02:35:04 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2017-08-22 02:35:04 +0200 |
| commit | 24bc47b1795d704cfe1b4a116657e9223f58fffc (patch) | |
| tree | 916fdfbbb3bf2950e7d2abdce0d1e0afd81e3425 /editor/plugins/script_editor_plugin.cpp | |
| parent | b3ff7ca62e3a431008466df3ef204934ee8cb497 (diff) | |
| download | godot-24bc47b1795d704cfe1b4a116657e9223f58fffc.tar.gz godot-24bc47b1795d704cfe1b4a116657e9223f58fffc.tar.zst godot-24bc47b1795d704cfe1b4a116657e9223f58fffc.zip | |
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 6db732ba5..387337bf2 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -2072,7 +2072,10 @@ void ScriptEditor::_update_selected_editor_menu() { } } - EditorHelp *eh = tab_container->get_current_tab_control()->cast_to<EditorHelp>(); + EditorHelp *eh = NULL; + if (tab_container->get_current_tab_control()) + eh = tab_container->get_current_tab_control()->cast_to<EditorHelp>(); + if (eh) { script_search_menu->show(); } else { |
