[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - cui/source
Andras Timar (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jun 29 06:32:28 UTC 2020
cui/source/dialogs/SpellDialog.cxx | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
New commits:
commit 9f0c02854c0a94534fcdfc7ba2af1045bbe89e65
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Sun Jun 28 22:03:02 2020 +0200
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Mon Jun 29 08:31:56 2020 +0200
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 at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
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;
}
More information about the Libreoffice-commits
mailing list