summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2021-11-01 19:14:06 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-11-15 12:41:18 +0100
commitc9bfb849aef0de759edcd5f3137ff07d913a1cf5 (patch)
tree1faf2e4b5b28069461c84aa095a617a740db4710 /cui
parent7cffe43f0dc063b90e60f1698c30444297fb6f6a (diff)
tdf#145128 "Perform file extension check" should be disabled if finalized
Change-Id: I7181ab8dde28fd5580a90fb267b31eaffd6a9878 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124567 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit a2f0d457c8addeeef768a93f6a174617094a0254) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124850 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optgdlg.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index baa96ad3166c..161a47de401d 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -336,6 +336,7 @@ void OfaMiscTabPage::Reset( const SfxItemSet* rSet )
m_xPerformFileExtCheck->set_active(
officecfg::Office::Common::Misc::PerformFileExtCheck::get());
m_xPerformFileExtCheck->save_state();
+ m_xPerformFileExtCheck->set_sensitive(!officecfg::Office::Common::Misc::PerformFileExtCheck::isReadOnly());
#endif
}