From 896f19764abf9301169bf9631877bdae075edde4 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Wed, 19 Jul 2023 20:16:40 -0400 Subject: tdf#156308 autosave: re-listening to config, no restart requests The reason the restart request was added was because of the broken config. Now that the config is correct again, the listener notices the enable change and turns AutoSave on/off immediately. So there is no need to prompt the user to restart after modifying the setting in Tools - Options. Change-Id: I0c775964ce5d9f860b0ce320db86d8db7226a489 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154663 Tested-by: Jenkins Reviewed-by: Justin Luth --- cui/source/options/optsave.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cui') diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx index b60fe8da2594..e63bab701926 100644 --- a/cui/source/options/optsave.cxx +++ b/cui/source/options/optsave.cxx @@ -281,7 +281,7 @@ bool SvxSaveTabPage::FillItemSet( SfxItemSet* rSet ) { rSet->Put( SfxBoolItem( SID_ATTR_AUTOSAVE, m_xAutoSaveCB->get_active() ) ); - bModified = bRequestRestart = true; + bModified = true; } if ( m_xWarnAlienFormatCB->get_state_changed_from_saved() ) { -- cgit