OSX: fsmenu cleanup

This commit is contained in:
jens verwiebe 2014-10-08 12:48:38 +02:00 committed by Sergey Sharybin
parent 3301abdca9
commit 576425735e
1 changed files with 5 additions and 6 deletions

View File

@ -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);