[Bf-blender-cvs] [5764257] blender-v2.72-release: OSX: fsmenu cleanup

Jens Verwiebe noreply at git.blender.org
Wed Oct 15 13:14:11 CEST 2014


Commit: 576425735e85a1f7f778b1720c6974a7652ccc36
Author: Jens Verwiebe
Date:   Wed Oct 8 12:48:38 2014 +0200
Branches: blender-v2.72-release
https://developer.blender.org/rB576425735e85a1f7f778b1720c6974a7652ccc36

OSX: fsmenu cleanup

===================================================================

M	source/blender/editors/space_file/fsmenu.c

===================================================================

diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index 2d21a88..801c346 100644
--- a/source/blender/editors/space_file/fsmenu.c
+++ b/source/blender/editors/space_file/fsmenu.c
@@ -444,12 +444,11 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
 				if (pathString == NULL || !CFStringGetCString(pathString, line, sizeof(line), kCFStringEncodingASCII))
 					continue;
 
-                /* Exclude "all my files" as it makes no sense in blender fileselector */
-                /* Exclude "airdrop" if wlan not active as it would show "" ) */
-                if (strcmp((char *)line, "/System/Library/CoreServices/Finder.app/Contents/Resources/MyLibraries/myDocuments.cannedSearch")
-                    && (strcmp((char *)line, "")))   {
-                    fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, NULL);
-                }
+				/* Exclude "all my files" as it makes no sense in blender fileselector */
+				/* Exclude "airdrop" if wlan not active as it would show "" ) */
+				if (!strstr((char *)line, "myDocuments.cannedSearch") && (strcmp((char *)line, "")))   {
+					fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, NULL);
+				}
 				
 				CFRelease(pathString);
 				CFRelease(cfURL);




More information about the Bf-blender-cvs mailing list