diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2016-10-30 16:34:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-30 16:34:11 +0100 |
commit | 2001e0f75ffc23089eba08365e1fbc4fe3b46584 (patch) | |
tree | 2a585667ec4e6ecb0a28e13eb95380d2b9217a90 /tools/editor/plugins/script_editor_plugin.cpp | |
parent | cfb8bfb4545fdfb8ffe1e78920c4a695e1f5dad2 (diff) | |
parent | 513820ab276e06b7a5f14b3437dc21d9a320c1a2 (diff) |
Merge pull request #6978 from volzhs/dup-search-menu
Fix 2 search menus are shown
Diffstat (limited to 'tools/editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 99c50efd2f..b6ce3e89eb 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -1909,19 +1909,14 @@ void ScriptEditor::_update_selected_editor_menu() { se->get_edit_menu()->hide(); } - EditorHelp *eh = tab_container->get_child(i)->cast_to<EditorHelp>(); - - if (eh) { - - if (current) - script_search_menu->show(); - else - script_search_menu->hide(); - } - - } + EditorHelp *eh=tab_container->get_current_tab_control()->cast_to<EditorHelp>(); + if (eh) { + script_search_menu->show(); + } else { + script_search_menu->hide(); + } } void ScriptEditor::_update_history_pos(int p_new_pos) { |