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 18:54:39 +0200
commit5d0e5a20475be057b2ed99460fd534f174c36069 (patch)
tree332d64737c4239dd90fabcb7ed16bee44c03bbfc /sfx2
parent75db2b08856ddc522a949a07145b33b0fae4801e (diff)
lok: Disable autocorrect dialog from native context menu.
Change-Id: I973057c91be6704b5db7d9054679e0ddc8abf429 Reviewed-on: https://gerrit.libreoffice.org/80662 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> 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 e46e29741243..ef93d3da05e8 100644
--- a/sfx2/sdi/appslots.sdi
+++ b/sfx2/sdi/appslots.sdi
@@ -288,6 +288,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 e6fd447cae64..1b2f2a3b346d 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>
@@ -1725,7 +1726,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: */