framework/source/services/autorecovery.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d16d86685afdf3d321cc282a39a65f38381b6eaa
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Sat Jul 29 22:22:20 2023 -0400
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Tue Aug 1 03:10:44 2023 +0200

    tdf#57414 autorecovery: if no recovery doc, remove from RecoveryList
    
    The document has just been saved
    (perhaps manually, perhaps automatically)
    and so the recovery ODF files are being removed.
    
    So remove from RecoveryList since there is nothing
    recoverable at this point.
    
    Sure the document is open, and perhaps
    there is even a modification already,
    but if there are no recovery files available,
    then why display it to the user?
    
    Change-Id: I309cd7df573c960f75c2240c8b5cf171fc1d95be
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155059
    Tested-by: Justin Luth <jl...@mail.com>
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/framework/source/services/autorecovery.cxx 
b/framework/source/services/autorecovery.cxx
index f325a45788a2..7bdf5f094b30 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -2662,7 +2662,8 @@ void AutoRecovery::implts_markDocumentAsSaved(const 
css::uno::Reference< css::fr
 
     } /* SAFE */
 
-    implts_flushConfigItem(aInfo);
+    // no need to recover a saved document until modified and new recovery 
file is created
+    implts_flushConfigItem(aInfo, /*bRemoveIt=*/true);
 
     aCacheLock.unlock();
 

Reply via email to