diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-24 09:21:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-25 09:40:36 +0200 |
commit | be683ad84960cad35299ed06b6b47691d90e2554 (patch) | |
tree | 872899209151be13a6b1e960ab57ec8df42c5c2d /cui | |
parent | 9117fb44bc7bd6b8764911c731c84a9e5dcc37f0 (diff) |
use officecfg to retrieve WarnAlienFormat
Change-Id: Id7ca2ffa237cb8fda58af60ee5d296f492c5a47e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119462
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optsave.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx index 40ea7c7502db..b6fb9e819682 100644 --- a/cui/source/options/optsave.cxx +++ b/cui/source/options/optsave.cxx @@ -442,8 +442,8 @@ void SvxSaveTabPage::Reset( const SfxItemSet* ) m_xUserAutoSaveCB->set_active(officecfg::Office::Recovery::AutoSave::UserAutoSaveEnabled::get()); m_xUserAutoSaveCB->set_sensitive(!officecfg::Office::Recovery::AutoSave::UserAutoSaveEnabled::isReadOnly()); - m_xWarnAlienFormatCB->set_active(aSaveOpt.IsWarnAlienFormat()); - m_xWarnAlienFormatCB->set_sensitive(!aSaveOpt.IsReadOnly(SvtSaveOptions::EOption::WarnAlienFormat)); + m_xWarnAlienFormatCB->set_active(officecfg::Office::Common::Save::Document::WarnAlienFormat::get()); + m_xWarnAlienFormatCB->set_sensitive(!officecfg::Office::Common::Save::Document::WarnAlienFormat::isReadOnly()); m_xAutoSaveEdit->set_value(officecfg::Office::Common::Save::Document::AutoSaveTimeIntervall::get()); m_xAutoSaveEdit->set_sensitive(!officecfg::Office::Common::Save::Document::AutoSaveTimeIntervall::isReadOnly()); |