summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-24 10:46:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-25 13:40:07 +0200
commitf4fc908d00bf1fb05cdca89cdfd2f0c3b83723eb (patch)
treeaca19516248899564db9f98adf261c34ec61fe78 /cui
parent293c1a629a69822b4a9996d0522513bc2a0d78e1 (diff)
use officecfg to retrieve CreateBackup
Change-Id: I4aeb1224f0d42dadd5a69dd49b8df9ee2f776b04 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119471 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optsave.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx
index 8b3d3f1b86fa..8748f55f4a7d 100644
--- a/cui/source/options/optsave.cxx
+++ b/cui/source/options/optsave.cxx
@@ -437,8 +437,8 @@ void SvxSaveTabPage::Reset( const SfxItemSet* )
m_xDocInfoCB->set_active(officecfg::Office::Common::Save::Document::EditProperty::get());
m_xDocInfoCB->set_sensitive(!officecfg::Office::Common::Save::Document::EditProperty::isReadOnly());
- m_xBackupCB->set_active(aSaveOpt.IsBackup());
- m_xBackupCB->set_sensitive(!aSaveOpt.IsReadOnly(SvtSaveOptions::EOption::Backup));
+ m_xBackupCB->set_active(officecfg::Office::Common::Save::Document::CreateBackup::get());
+ m_xBackupCB->set_sensitive(!officecfg::Office::Common::Save::Document::CreateBackup::isReadOnly());
m_xAutoSaveCB->set_active(officecfg::Office::Common::Save::Document::AutoSave::get());
m_xAutoSaveCB->set_sensitive(!officecfg::Office::Common::Save::Document::AutoSave::isReadOnly());