summaryrefslogtreecommitdiff
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:31:56 +0200
commit9f0c02854c0a94534fcdfc7ba2af1045bbe89e65 (patch)
treebd2efdcdf1a05b57c6ac7253b80d0499b8f52553 /cui
parentfe92c8827b418481fcf504e171c4bd57cbd3acd0 (diff)
LOKit: do not show 'Add to Dictionary' button for Online
Because user profiles (user dictionaries) are not persistent. Change-Id: I78261cccc068cfc1cc9fb2ddecd085ac58ff31c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97352 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 85dc7027ceed..64a1b0270589 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -52,6 +52,7 @@
#include <svtools/langtab.hxx>
#include <sal/log.hxx>
#include <i18nlangtag/languagetag.hxx>
+#include <comphelper/lok.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -322,8 +323,8 @@ void SpellDialog::UpdateBoxes_Impl(bool bCallFromSelectHdl)
m_xLanguageLB->set_sensitive( bShowChangeAll );
m_xIgnoreAllPB->set_visible( bShowChangeAll );
- m_xAddToDictMB->set_visible( bShowChangeAll && nDicts > 1);
- m_xAddToDictPB->set_visible( bShowChangeAll && nDicts <= 1);
+ m_xAddToDictMB->set_visible( bShowChangeAll && nDicts > 1 && !comphelper::LibreOfficeKit::isActive());
+ m_xAddToDictPB->set_visible( bShowChangeAll && nDicts <= 1 && !comphelper::LibreOfficeKit::isActive());
m_xIgnoreRulePB->set_visible( !bShowChangeAll );
m_xIgnoreRulePB->set_sensitive(bSpellErrorDescription && !aSpellErrorDescription.sRuleId.isEmpty());
m_xAutoCorrPB->set_visible( bShowChangeAll && rParent.HasAutoCorrection() );
@@ -798,8 +799,8 @@ int SpellDialog::InitUserDicts()
int nDicts = nItemId-1;
- m_xAddToDictMB->set_visible( nDicts > 1 );
- m_xAddToDictPB->set_visible( nDicts <= 1 );
+ m_xAddToDictMB->set_visible(nDicts > 1 && !comphelper::LibreOfficeKit::isActive());
+ m_xAddToDictPB->set_visible(nDicts <= 1 && !comphelper::LibreOfficeKit::isActive());
return nDicts;
}