[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - sfx2/source
Mike Kaganski
mike.kaganski at collabora.com
Mon Oct 17 09:59:11 UTC 2016
sfx2/source/doc/docfile.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit 4af1ac3a9a773e4875712dd2f43f06a1a4edcc19
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date: Sat Oct 15 00:26:09 2016 +1000
tdf#92817: re-implement empty lockfile fix
As stated in original commit 8d411a4a1ef6844c00bc714f8b144d3729e4f4e8,
An empty lock file doesn't have OOOUSERNAME and SYSUSERNAME.
Change-Id: I17fc6d3375f411749fcbbe80535beb8ba53a0e71
Reviewed-on: https://gerrit.libreoffice.org/29836
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 288632c..f681bbf 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -830,10 +830,8 @@ sal_Int8 SfxMedium::ShowLockedDocumentDialog( const LockFileEntry& aData, bool b
{
sal_Int8 nResult = LOCK_UI_NOLOCK;
- if( aData[LockFileComponent::OOOUSERNAME] == aData[LockFileComponent::SYSUSERNAME] ||
- aData[LockFileComponent::OOOUSERNAME].isEmpty() ||
- aData[LockFileComponent::SYSUSERNAME].isEmpty()
- )
+ // tdf#92817: Simple check for empty lock file that needs to be deleted
+ if( aData[LockFileComponent::OOOUSERNAME].isEmpty() && aData[LockFileComponent::SYSUSERNAME].isEmpty() )
bOwnLock=true;
// show the interaction regarding the document opening
More information about the Libreoffice-commits
mailing list