svx/source/dialog/docrecovery.cxx |    4 ++--
 svx/source/inc/docrecovery.hxx    |    2 +-
 svx/source/unodraw/recoveryui.cxx |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 47cff47966ea2876765bdfb2dfb83eaeb1db1e1a
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Thu Aug 10 09:33:26 2023 -0400
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Fri Aug 11 00:11:35 2023 +0200

    autorecovery: DLG_RET_OK_AUTOLUNCH => DLG_RET_OK_AUTOLAUNCH
    
    Change-Id: I3f1436fa1b8ff5b34c65b103b0dd26dffc0e558d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155566
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/svx/source/dialog/docrecovery.cxx 
b/svx/source/dialog/docrecovery.cxx
index f77418227c78..1e40115270bb 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -607,9 +607,9 @@ IMPL_LINK_NOARG(SaveDialog, OKButtonHdl, weld::Button&, 
void)
     xProgress.reset();
 
     // if "CANCEL" => return "CANCEL"
-    // if "OK"     => "AUTOLUNCH" always !
+    // if "OK"     => request a restart always!
     if (nResult == DLG_RET_OK)
-        nResult = DLG_RET_OK_AUTOLUNCH;
+        nResult = DLG_RET_OK_AUTOLAUNCH;
 
     m_xDialog->response(nResult);
 }
diff --git a/svx/source/inc/docrecovery.hxx b/svx/source/inc/docrecovery.hxx
index 9660f20bef3a..16b8917ee552 100644
--- a/svx/source/inc/docrecovery.hxx
+++ b/svx/source/inc/docrecovery.hxx
@@ -64,7 +64,7 @@ inline constexpr OUStringLiteral STATEPROP_MODULE = u"Module";
 #define DLG_RET_UNKNOWN                                  -1
 #define DLG_RET_OK                                      RET_OK
 #define DLG_RET_CANCEL                                  RET_CANCEL
-#define DLG_RET_OK_AUTOLUNCH                            101
+#define DLG_RET_OK_AUTOLAUNCH                           101 // request a 
restart
 
 
 enum class EDocStates
diff --git a/svx/source/unodraw/recoveryui.cxx 
b/svx/source/unodraw/recoveryui.cxx
index 010d901f5dc3..a8e2e9395417 100644
--- a/svx/source/unodraw/recoveryui.cxx
+++ b/svx/source/unodraw/recoveryui.cxx
@@ -256,7 +256,7 @@ bool RecoveryUI::impl_doEmergencySave()
 
     // start the dialog
     short nRet = xDialog->run();
-    return (nRet==DLG_RET_OK_AUTOLUNCH);
+    return (nRet==DLG_RET_OK_AUTOLAUNCH);
 }
 
 bool RecoveryUI::impl_doRecovery()

Reply via email to