cui/source/options/optsave.cxx |    2 +-
 cui/uiconfig/ui/optsavepage.ui |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5eae366cbdfb4c2e9f7a9b88257d12c400831456
Author:     Justin Luth <[email protected]>
AuthorDate: Thu Jul 13 07:57:29 2023 -0400
Commit:     Justin Luth <[email protected]>
CommitDate: Thu Jul 13 16:45:48 2023 +0200

    tdf#65509 - re-make visible userautosave config option
    
    This reverts LO 5.0 commit 4653c91a89cfe802754377bcdafc291526254a03
    
    It was hidden because the feature didn't work well.
    Many of the "stumbling blocks" have been removed since version 5,
    and many people - especially in this age of web apps - expect
    a program to automatically take care of saving their documents.
    So make the option visible again.
    
    Change-Id: I09e73b0c96df697b4dfb8b7705ca28191ce6f8b4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154389
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <[email protected]>

diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx
index c35da388ebf9..2772c6d60944 100644
--- a/cui/source/options/optsave.cxx
+++ b/cui/source/options/optsave.cxx
@@ -290,7 +290,7 @@ bool SvxSaveTabPage::FillItemSet( SfxItemSet* rSet )
     {
         rSet->Put( SfxBoolItem( SID_ATTR_USERAUTOSAVE,
                                m_xUserAutoSaveCB->get_active() ) );
-        bModified = true;
+        bModified = bRequestRestart = true;
     }
     // save relatively
     if ( m_xRelativeFsysCB->get_state_changed_from_saved() )
diff --git a/cui/uiconfig/ui/optsavepage.ui b/cui/uiconfig/ui/optsavepage.ui
index 82c9910dcf72..5e93c38a5856 100644
--- a/cui/uiconfig/ui/optsavepage.ui
+++ b/cui/uiconfig/ui/optsavepage.ui
@@ -182,6 +182,7 @@
             <child>
               <object class="GtkCheckButton" id="userautosave">
                 <property name="label" translatable="yes" 
context="optsavepage|userautosave">Automatically save the document 
too</property>
+                <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">False</property>
                 <property name="margin-start">12</property>

Reply via email to