summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-23 20:05:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-24 22:52:27 +0200
commit6f07012a344101f2afbf9c96dc7857127f39a25f (patch)
treef2ae2713ef5d1a6a244252e337c0ee849eb71c2f /cui
parentd904a21d5516ce2786f634d0bcc555c4b345e95d (diff)
use officecfg to retrieve AutoSave
Change-Id: I613ca68123cfd316cd4e6384f743aa6756d9291d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119459 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 b0a58b4743f6..b13f88b10ab3 100644
--- a/cui/source/options/optsave.cxx
+++ b/cui/source/options/optsave.cxx
@@ -435,8 +435,8 @@ void SvxSaveTabPage::Reset( const SfxItemSet* )
m_xBackupCB->set_active(aSaveOpt.IsBackup());
m_xBackupCB->set_sensitive(!aSaveOpt.IsReadOnly(SvtSaveOptions::EOption::Backup));
- m_xAutoSaveCB->set_active(aSaveOpt.IsAutoSave());
- m_xAutoSaveCB->set_sensitive(!aSaveOpt.IsReadOnly(SvtSaveOptions::EOption::AutoSave));
+ m_xAutoSaveCB->set_active(officecfg::Office::Common::Save::Document::AutoSave::get());
+ m_xAutoSaveCB->set_sensitive(!officecfg::Office::Common::Save::Document::AutoSave::isReadOnly());
m_xUserAutoSaveCB->set_active(aSaveOpt.IsUserAutoSave());
m_xUserAutoSaveCB->set_sensitive(!aSaveOpt.IsReadOnly(SvtSaveOptions::EOption::UserAutoSave));