summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2019-04-04 21:59:06 +0200
committerAndras Timar <andras.timar@collabora.com>2019-04-05 08:28:34 +0200
commit56971d434bf2242e436f6d671221fa80d1d2895a (patch)
treef64ab7321742c638364dba2a9c29686be9a235c8
parentd48f5dc1a0ed0c2c41888c91d8f9f140c58b27b3 (diff)
respect read-only config item: CreateMSOLockFiles
Change-Id: I6b264a2f2e2995e880169f6224c60f023584469d Reviewed-on: https://gerrit.libreoffice.org/70270 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--cui/source/options/optfltr.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/options/optfltr.cxx b/cui/source/options/optfltr.cxx
index f29c14c78837..b97adf52cbbe 100644
--- a/cui/source/options/optfltr.cxx
+++ b/cui/source/options/optfltr.cxx
@@ -19,6 +19,7 @@
#include <unotools/moduleoptions.hxx>
#include <unotools/fltrcfg.hxx>
+#include <officecfg/Office/Common.hxx>
#include "optfltr.hxx"
#include <strings.hrc>
#include <dialmgr.hxx>
@@ -328,6 +329,7 @@ void OfaMSFilterTabPage2::Reset( const SfxItemSet* )
aMSOLockFileCB->Check(rOpt.IsMSOLockFileCreationIsEnabled());
aMSOLockFileCB->SaveValue();
+ aMSOLockFileCB->Enable(!officecfg::Office::Common::Filter::Microsoft::Import::CreateMSOLockFiles::isReadOnly());
}
void OfaMSFilterTabPage2::InsertEntry( const OUString& _rTxt, MSFltrPg2_CheckBoxEntries _nType )