ScriptEditor: Fixes bug where menu option would be handled twice

This commit is contained in:
Ignacio Etcheverry 2017-04-17 02:41:24 +02:00
parent e55a496f79
commit 97c385dbb8

View file

@ -878,7 +878,7 @@ void ScriptEditor::_menu_option(int p_option) {
}
}
}
}
} else {
EditorHelp *help = tab_container->get_current_tab_control()->cast_to<EditorHelp>();
if (help) {
@ -903,6 +903,7 @@ void ScriptEditor::_menu_option(int p_option) {
}
}
}
}
void ScriptEditor::_tab_changed(int p_which) {