diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-10-31 13:42:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-01 16:10:13 +0100 |
commit | 6e11de09b3cce8cec0fc43b8fdb631ace0853a5a (patch) | |
tree | a0b2c7ad2fb8ceea86a455003d927b63d33e576c /cui | |
parent | 090636a305e12538164217cdf7be49980088dc54 (diff) |
use officecfg for UseSystemPrintDialog
Change-Id: I0e0bdc925f106884cbcede6405cc6ef7152ad405
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105139
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 9685564187ea..487cff1f6883 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -337,8 +337,10 @@ bool OfaMiscTabPage::FillItemSet( SfxItemSet* rSet ) if ( m_xPrintDlgCB->get_state_changed_from_saved() ) { - SvtMiscOptions aMiscOpt; - aMiscOpt.SetUseSystemPrintDialog( !m_xPrintDlgCB->get_active() ); + std::shared_ptr< comphelper::ConfigurationChanges > xChanges( + comphelper::ConfigurationChanges::create()); + officecfg::Office::Common::Misc::UseSystemPrintDialog::set( !m_xPrintDlgCB->get_active(), xChanges ); + xChanges->commit(); bModified = true; } @@ -393,7 +395,7 @@ void OfaMiscTabPage::Reset( const SfxItemSet* rSet ) SvtMiscOptions aMiscOpt; m_xFileDlgCB->set_active( !aMiscOpt.UseSystemFileDialog() ); m_xFileDlgCB->save_state(); - m_xPrintDlgCB->set_active( !aMiscOpt.UseSystemPrintDialog() ); + m_xPrintDlgCB->set_active( !officecfg::Office::Common::Misc::UseSystemPrintDialog::get() ); m_xPrintDlgCB->save_state(); m_xDocStatusCB->set_active(officecfg::Office::Common::Print::PrintingModifiesDocument::get()); |