Kaydet (Commit) af9bea21 authored tarafından Juergen Funk's avatar Juergen Funk Kaydeden (comit) Katarina Behrens

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/39054Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
Tested-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst fc50502a
......@@ -1197,7 +1197,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&)
......@@ -1205,7 +1206,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
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment