Kaydet (Commit) bfedaea4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

improve comment

Change-Id: I451ab0fb0e7ee1a6d20091caa9c1142b16796dc7
üst 3e55cf49
...@@ -315,12 +315,11 @@ Sequence< Sequence<PropertyValue> > SvtHistoryOptions_Impl::GetList(EHistoryType ...@@ -315,12 +315,11 @@ Sequence< Sequence<PropertyValue> > SvtHistoryOptions_Impl::GetList(EHistoryType
xOrderList->getByName(OUString::number(nItem)) >>= xSet; xOrderList->getByName(OUString::number(nItem)) >>= xSet;
xSet->getPropertyValue(s_sHistoryItemRef) >>= sUrl; xSet->getPropertyValue(s_sHistoryItemRef) >>= sUrl;
// Check if file is openable and on a local filesystem. // Check if file is openable, but for performance reasons try to
// Windows UNC pathes like \\server.domain\file.odt map to // only do so for files on a local filesystem. For Windows,
// file://server.domain/file.odt. Therefore, we require a beginning // checking for "file:///" nicely filters out UNC paths (that only
// slash which supprisingly also works for local files on Windows // have two slashes), but of course misses to filter out remote
// as they map to file:///C:/folder/file.odt. Remote files may // mounts on Unix-like systems:
// cause hangs if the share is unavailable. See tdf#89394
if (!sUrl.startsWith("file:///") || lcl_fileOpenable(sUrl)) if (!sUrl.startsWith("file:///") || lcl_fileOpenable(sUrl))
{ {
xItemList->getByName(sUrl) >>= xSet; xItemList->getByName(sUrl) >>= xSet;
......
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