summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2019-07-13 15:45:22 +0100
committerMichael Meeks <michael.meeks@collabora.com>2019-10-11 21:34:05 +0200
commite04fb52e8cdc8811c90f7c3492caa87c03ea6c67 (patch)
tree502f73a63afcd3a08cc2375c8a04817fcbf4e79a /sfx2
parent702b199db825599222514c8716da575032f1b346 (diff)
lok: Disable autocorrect dialog from native context menu.
Change-Id: I973057c91be6704b5db7d9054679e0ddc8abf429 Reviewed-on: https://gerrit.libreoffice.org/80658 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/sdi/appslots.sdi1
-rw-r--r--sfx2/source/appl/appserv.cxx4
2 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/sdi/appslots.sdi b/sfx2/sdi/appslots.sdi
index ee5a731d2063..6bd28f73b37f 100644
--- a/sfx2/sdi/appslots.sdi
+++ b/sfx2/sdi/appslots.sdi
@@ -291,6 +291,7 @@ shell SfxApplication
SID_AUTO_CORRECT_DLG
[
ExecMethod = OfaExec_Impl ;
+ StateMethod = OfaState_Impl;
]
SID_OPTIONS_TREEDIALOG
[
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index a7ede6f37492..64977135ba3a 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -46,6 +46,7 @@
#include <com/sun/star/util/CloseVetoException.hpp>
#include <org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp>
+#include <comphelper/lok.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertysequence.hxx>
@@ -1689,7 +1690,8 @@ void SfxApplication::OfaState_Impl(SfxItemSet &rSet)
rSet.DisableItem( FN_BUSINESS_CARD );
rSet.DisableItem( FN_XFORMS_INIT );
}
-
+ if ( comphelper::LibreOfficeKit::isActive() )
+ rSet.DisableItem( SID_AUTO_CORRECT_DLG );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */