summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorJustin Luth <jluth@mail.com>2023-07-29 22:22:20 -0400
committerMike Kaganski <mike.kaganski@collabora.com>2023-08-01 03:10:44 +0200
commitd16d86685afdf3d321cc282a39a65f38381b6eaa (patch)
tree81aa2f14169ac773d2809237a8a78f906454066e /framework
parent2a9e83a673300dfe15a3acc66acd560b2a7cae43 (diff)
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 <jluth@mail.com> Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/autorecovery.cxx3
1 files changed, 2 insertions, 1 deletions
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();