summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJuergen Funk <juergen.funk_ml@cib.de>2017-06-21 14:41:49 +0200
committerAron Budea <aron.budea@collabora.com>2018-02-09 15:43:49 +0100
commit6c5af47fc25aecc624e68af174c7e1d9ca2392f9 (patch)
tree941ceb51a8191bafe758b17fc4956a65f7267b1c /sfx2
parente5dc12d37bfea357aeb6f71e876dd4f93833d1c9 (diff)
Improve tdf#106942: always erase empty/corrupt lockfile
also when we could not create lockfile, not only when open as readonly Change-Id: Ied53bbfe47669f62553d97d81f0bed156ae58887 Reviewed-on: https://gerrit.libreoffice.org/39054 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de> Reviewed-on: https://gerrit.libreoffice.org/49469 Reviewed-by: Aron Budea <aron.budea@collabora.com> Tested-by: Aron Budea <aron.budea@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 431f9d2e78dc..98c861358090 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -1242,7 +1242,8 @@ void SfxMedium::LockOrigFileOnDemand( bool bLoading, bool bNoUI )
if (bLoading && !bNoUI)
{
bIoErr = true;
- bResult = ShowLockFileProblemDialog(MessageDlg::LockFileIgnore);
+ ShowLockFileProblemDialog(MessageDlg::LockFileIgnore);
+ bResult = true; // always delete the defect lock-file
}
}
catch (const uno::Exception&)
@@ -1250,7 +1251,8 @@ void SfxMedium::LockOrigFileOnDemand( bool bLoading, bool bNoUI )
if (bLoading && !bNoUI)
{
bIoErr = true;
- bResult = ShowLockFileProblemDialog(MessageDlg::LockFileIgnore);
+ ShowLockFileProblemDialog(MessageDlg::LockFileIgnore);
+ bResult = true; // always delete the defect lock-file
}
}