diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-23 20:05:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-24 22:52:27 +0200 |
commit | 6f07012a344101f2afbf9c96dc7857127f39a25f (patch) | |
tree | f2ae2713ef5d1a6a244252e337c0ee849eb71c2f /sd/source | |
parent | d904a21d5516ce2786f634d0bcc555c4b345e95d (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 'sd/source')
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 8751a7c6f212..dc3b3bef239a 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -37,6 +37,7 @@ #include <com/sun/star/frame/XLayoutManager.hpp> #include <com/sun/star/presentation/SlideShow.hpp> #include <com/sun/star/media/XPlayer.hpp> +#include <officecfg/Office/Common.hxx> #include <svl/stritem.hxx> #include <svl/urihelper.hxx> #include <unotools/saveopt.hxx> @@ -531,10 +532,8 @@ SlideshowImpl::SlideshowImpl( const Reference< XPresentation2 >& xPresentation, maInputFreezeTimer.SetInvokeHandler( LINK( this, SlideshowImpl, ReadyForNextInputHdl ) ); maInputFreezeTimer.SetTimeout( 20 ); - SvtSaveOptions aOptions; - // no autosave during show - if( aOptions.IsAutoSave() ) + if( officecfg::Office::Common::Save::Document::AutoSave::get() ) mbAutoSaveWasOn = true; Application::AddEventListener( LINK( this, SlideshowImpl, EventListenerHdl ) ); |