summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2009-02-16 08:33:19 +0000
committerOliver Bolte <obo@openoffice.org>2009-02-16 08:33:19 +0000
commit2864b9973360694a77faabeeae90530a6274b105 (patch)
tree0434b4979024aa2a24ea0be55a719b4ec92e3a39 /fpicker
parent792899fb44336d91e4019599199ffef11c8a4713 (diff)
CWS-TOOLING: integrate CWS macmiscfixes
2009-01-26 07:58:26 +0100 fheckl r266898 : 97394 add a small memory leak fix 2009-01-24 20:56:18 +0100 ericb r266885 : #i95688# better fix suggested by rvojta 2009-01-24 17:13:37 +0100 rakeshpandit r266882 : #i98428# Fixed a missing ';'. 2009-01-24 00:25:43 +0100 ericb r266859 : #i95688# a try to fix the send active document including when the name contains space 2009-01-24 00:23:59 +0100 ericb r266858 : #i97394# fix aliases (disabled) in save dialog. Patch provided by Robert Vojta
Diffstat (limited to 'fpicker')
-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));