cui/source/dialogs/SpellDialog.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
New commits: commit 9624591db4b9b27996fd18ac47e9100c6905fc4a Author: Andras Timar <andras.ti...@collabora.com> AuthorDate: Sun Jun 28 22:03:02 2020 +0200 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Mon Jun 29 08:32:37 2020 +0200 LOKit: do not show 'Add to Dictionary' button for Online Because user profiles (user dictinaries) are not persistent. Change-Id: I78261cccc068cfc1cc9fb2ddecd085ac58ff31c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97351 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 0b27d8d20aab..f3f8f9cb334a 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -55,6 +55,7 @@ #include <svtools/langtab.hxx> #include <cppuhelper/exc_hlp.hxx> #include <sal/log.hxx> +#include <comphelper/lok.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -357,8 +358,8 @@ void SpellDialog::UpdateBoxes_Impl(bool bCallFromSelectHdl) m_pLanguageLB->Enable( bShowChangeAll ); m_pIgnoreAllPB->Show( bShowChangeAll ); - m_pAddToDictMB->Show( bShowChangeAll && nDicts > 1); - m_pAddToDictPB->Show( bShowChangeAll && nDicts <= 1); + m_pAddToDictMB->Show(bShowChangeAll && nDicts > 1 && !comphelper::LibreOfficeKit::isActive()); + m_pAddToDictPB->Show(bShowChangeAll && nDicts <= 1 && !comphelper::LibreOfficeKit::isActive()); m_pIgnoreRulePB->Show( !bShowChangeAll ); m_pIgnoreRulePB->Enable(pSpellErrorDescription && !pSpellErrorDescription->sRuleId.isEmpty()); m_pAutoCorrPB->Show( bShowChangeAll && rParent.HasAutoCorrection() ); @@ -845,8 +846,8 @@ int SpellDialog::InitUserDicts() int nDicts = nItemId-1; - m_pAddToDictMB->Show( nDicts > 1 ); - m_pAddToDictPB->Show( nDicts <= 1 ); + m_pAddToDictMB->Show(nDicts > 1 && !comphelper::LibreOfficeKit::isActive()); + m_pAddToDictPB->Show(nDicts <= 1 && !comphelper::LibreOfficeKit::isActive()); return nDicts; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits