sw/source/uibase/lingu/olmenu.cxx |   12 ------------
 1 file changed, 12 deletions(-)

New commits:
commit 2f75a2cc6915f85321f848e6ede38fe40b13bf98
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Fri Nov 29 15:00:22 2019 +0100
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Sun Dec 1 18:44:40 2019 +0100

    SpellingPopup: lok: we don't need to disable menu items for online.
    
    Now, that we generate the conext menu in JS code, we can control
    the visibility of items.
    
    Change-Id: I09112619a9669e6ebf1a8d468e0329b8914db0ff
    Reviewed-on: https://gerrit.libreoffice.org/84153
    Tested-by: Jenkins
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>

diff --git a/sw/source/uibase/lingu/olmenu.cxx 
b/sw/source/uibase/lingu/olmenu.cxx
index 16e068d20372..48c538a75a6a 100644
--- a/sw/source/uibase/lingu/olmenu.cxx
+++ b/sw/source/uibase/lingu/olmenu.cxx
@@ -304,13 +304,6 @@ SwSpellPopup::SwSpellPopup(
             vcl::CommandInfoProvider::GetPopupLabelForCommand(aProperties));
     }
 
-    if (comphelper::LibreOfficeKit::isActive())
-    {
-        m_xPopupMenu->HideItem(m_nCorrectDialogId);
-        m_xPopupMenu->HideItem(m_nAddId);
-        m_xPopupMenu->HideItem(m_nAddMenuId);
-        m_xPopupMenu->HideItem(m_nCorrectMenuId);
-    }
     sal_uInt16 nItemPos = m_xPopupMenu->GetItemPos(m_nIgnoreWordId);
     OUString aIgnoreSelection( SwResId( STR_IGNORE_SELECTION ) );
     m_xPopupMenu->InsertItem(MN_IGNORE_SELECTION, aIgnoreSelection, 
MenuItemBits::NONE, OString(), nItemPos);
@@ -592,11 +585,6 @@ SwSpellPopup::SwSpellPopup(
 
     SvtLinguConfig().SetProperty( UPN_IS_GRAMMAR_INTERACTIVE, uno::makeAny( 
true ));
 
-    if (comphelper::LibreOfficeKit::isActive())
-    {
-        m_xPopupMenu->HideItem(MN_EXPLANATION_LINK);
-    }
-
     InitItemCommands(rSuggestions);
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to