summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2020-06-28 22:03:02 +0200
committerAndras Timar <andras.timar@collabora.com>2020-06-29 08:32:37 +0200
commit9624591db4b9b27996fd18ac47e9100c6905fc4a (patch)
tree0f5b6a361689d82a8fa9a041f5f3a0ccd554c0cb /cui
parentBump version to 6.2-18 (diff)
downloadcore-9624591db4b9b27996fd18ac47e9100c6905fc4a.tar.gz
core-9624591db4b9b27996fd18ac47e9100c6905fc4a.zip
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx9
1 files changed, 5 insertions, 4 deletions
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;
}