summaryrefslogtreecommitdiff
path: root/fpicker/source/aqua/FilterHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/aqua/FilterHelper.cxx')
-rw-r--r--fpicker/source/aqua/FilterHelper.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/fpicker/source/aqua/FilterHelper.cxx b/fpicker/source/aqua/FilterHelper.cxx
index a06cb8cb18..75996f2d32 100644
--- a/fpicker/source/aqua/FilterHelper.cxx
+++ b/fpicker/source/aqua/FilterHelper.cxx
@@ -407,6 +407,15 @@ sal_Bool FilterHelper::filenameMatchesFilter(NSString* sFilename)
// OSL_TRACE(" folder");
return sal_True;
}
+
+ NSFileWrapper *wrapper = [[NSFileWrapper alloc] initWithPath:sFilename];
+ MacOSBOOL bIsLink = [wrapper isSymbolicLink];
+ [wrapper release];
+ if (bIsLink) {
+// OSL_TRACE(" symboliclink");
+ return sal_True;
+ }
+
// OSL_TRACE(" file");
FilterList::iterator filter = ::std::find_if(m_pFilterList->begin(), m_pFilterList->end(), FilterTitleMatch(m_aCurrentFilter));