diff options
author | Henry Castro <hcastro@collabora.com> | 2021-08-24 14:45:55 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2022-02-04 14:02:05 +0100 |
commit | 1a62f3383dfda9c35d46adbbdfbc3a9c2278eeb5 (patch) | |
tree | bef8f300a3acdad51a5a92d30ceff1d4f0351696 /editeng | |
parent | d2a3333ba6f354027a248bbfb2e1b8359d403c52 (diff) |
lok: ensure no more tunneled spellchecking menu
Change-Id: Ic79d9b6d606573d93830347390c6466b033e9f12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120963
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129460
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editview.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index 6e3fe0437568..0c2f8f43b2a9 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -1157,14 +1157,8 @@ void EditView::ExecuteSpellPopup(const Point& rPosPixel, const Link<SpellCallbac xPopupMenu->remove("autocorrect"); xPopupMenu->remove("autocorrectdlg"); - // For mobile phones, send the context menu structure - const SfxViewShell* pViewShell = SfxViewShell::Current(); - if (pViewShell && pViewShell->isLOKMobilePhone()) - { - LOKSendSpellPopupMenu(*xPopupMenu, nGuessLangWord, nGuessLangPara, nWords); - return; - } - // note, there is special handling of this menu 'editviewspellmenu' by vcl's PopupMenu::ImplExecute + LOKSendSpellPopupMenu(*xPopupMenu, nGuessLangWord, nGuessLangPara, nWords); + return; } OString sId = xPopupMenu->popup_at_rect(pPopupParent, aTempRect); |