[Bf-blender-cvs] [05e2629] master: OSX: adapt fs_menue to modern entries handling

Jens Verwiebe noreply at git.blender.org
Tue Oct 7 23:45:18 CEST 2014


Commit: 05e26297bf7f2c759999d2761357410a68fef489
Author: Jens Verwiebe
Date:   Tue Oct 7 23:44:58 2014 +0200
Branches: master
https://developer.blender.org/rB05e26297bf7f2c759999d2761357410a68fef489

OSX: adapt fs_menue to modern entries handling

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

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 1915f45..2d21a88 100644
--- a/source/blender/editors/space_file/fsmenu.c
+++ b/source/blender/editors/space_file/fsmenu.c
@@ -443,7 +443,13 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
 				
 				if (pathString == NULL || !CFStringGetCString(pathString, line, sizeof(line), kCFStringEncodingASCII))
 					continue;
-				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 (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);
+                }
 				
 				CFRelease(pathString);
 				CFRelease(cfURL);




More information about the Bf-blender-cvs mailing list