sfx2/source/doc/docfile.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
New commits: commit 8896851ddb02d043f3ebcc5b27b907369f0d6730 Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu Feb 11 18:26:24 2016 +0100 tdf#56544: Support LO's .~lock.*# file locking over smb, too Change-Id: Ia18c3044aba82f935b13f22ba98aff42e9d5098f (cherry picked from commit 763521335b01a37c511ae8069cade9b4b69fef66) Reviewed-on: https://gerrit.libreoffice.org/22295 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index a9a5df0..e30deb7 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -928,11 +928,12 @@ namespace { INetURLObject aUrl( rLogicName ); INetProtocol eProt = aUrl.GetProtocol(); -#if HAVE_FEATURE_MACOSX_SANDBOX - return eProt == INetProtocol::Sftp; -#else - return eProt == INetProtocol::File || eProt == INetProtocol::Sftp; +#if !HAVE_FEATURE_MACOSX_SANDBOX + if (eProt == INetProtocol::File) { + return true; + } #endif + return eProt == INetProtocol::Smb || eProt == INetProtocol::Sftp; } }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits