Merge pull request #8474 from allkhor/pr-fix-cherry-2.1
ScriptEditor: Fixes bug where menu option would be handled twice (2.1)
This commit is contained in:
commit
ea89c56bfb
@ -1552,25 +1552,26 @@ void ScriptEditor::_menu_option(int p_option) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
|
||||||
EditorHelp *help = tab_container->get_current_tab_control()->cast_to<EditorHelp>();
|
EditorHelp *help = tab_container->get_current_tab_control()->cast_to<EditorHelp>();
|
||||||
if (help) {
|
if (help) {
|
||||||
|
|
||||||
switch (p_option) {
|
switch (p_option) {
|
||||||
|
|
||||||
case SEARCH_FIND: {
|
case SEARCH_FIND: {
|
||||||
help->popup_search();
|
help->popup_search();
|
||||||
} break;
|
} break;
|
||||||
case SEARCH_FIND_NEXT: {
|
case SEARCH_FIND_NEXT: {
|
||||||
help->search_again();
|
help->search_again();
|
||||||
} break;
|
} break;
|
||||||
case FILE_CLOSE: {
|
case FILE_CLOSE: {
|
||||||
_close_current_tab();
|
_close_current_tab();
|
||||||
} break;
|
} break;
|
||||||
case CLOSE_DOCS: {
|
case CLOSE_DOCS: {
|
||||||
_close_docs_tab();
|
_close_docs_tab();
|
||||||
} break;
|
} break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user