From bfedaea4921a3bba10e1cdb566901978b6dbffc2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 16 Apr 2015 16:34:34 +0200 Subject: improve comment Change-Id: I451ab0fb0e7ee1a6d20091caa9c1142b16796dc7 --- unotools/source/config/historyoptions.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'unotools') diff --git a/unotools/source/config/historyoptions.cxx b/unotools/source/config/historyoptions.cxx index e7c28067823d..a9acd9aa8ae0 100644 --- a/unotools/source/config/historyoptions.cxx +++ b/unotools/source/config/historyoptions.cxx @@ -315,12 +315,11 @@ Sequence< Sequence > SvtHistoryOptions_Impl::GetList(EHistoryType xOrderList->getByName(OUString::number(nItem)) >>= xSet; xSet->getPropertyValue(s_sHistoryItemRef) >>= sUrl; - // Check if file is openable and on a local filesystem. - // Windows UNC pathes like \\server.domain\file.odt map to - // file://server.domain/file.odt. Therefore, we require a beginning - // slash which supprisingly also works for local files on Windows - // as they map to file:///C:/folder/file.odt. Remote files may - // cause hangs if the share is unavailable. See tdf#89394 + // Check if file is openable, but for performance reasons try to + // only do so for files on a local filesystem. For Windows, + // checking for "file:///" nicely filters out UNC paths (that only + // have two slashes), but of course misses to filter out remote + // mounts on Unix-like systems: if (!sUrl.startsWith("file:///") || lcl_fileOpenable(sUrl)) { xItemList->getByName(sUrl) >>= xSet; -- cgit