diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2009-12-11 13:51:36 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2009-12-11 13:51:36 +0000 |
commit | 81a766e546321545e8f2549ce4082686a121a6ff (patch) | |
tree | 2d9628bc278eb253a4bd62bb0e96d15a0ac55089 /sfx2 | |
parent | b82fa6fbfefd711455414d77b36a8d364bde4ce7 (diff) |
#i107525# use the system file locking after storing process is over
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 90a96661a052..c0b2bf8acd68 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -1113,6 +1113,13 @@ sal_Bool SfxMedium::LockOrigFileOnDemand( sal_Bool bLoading, sal_Bool bNoUI ) // otherwise the document should be opened readonly // if user cancel the loading the ERROR_ABORT is set + if ( pImp->m_bLocked && bLoading && ::utl::LocalFileHelper::IsLocalFile( GetURLObject().GetMainURL( INetURLObject::NO_DECODE ) ) ) + { + // if the document is already locked the system locking might be temporarely off after storing + // check whether the system file locking should be taken again + GetLockingStream_Impl(); + } + sal_Bool bResult = pImp->m_bLocked; if ( !bResult ) |