Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2014-10-08 14:48:38 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-10-15 15:14:03 +0400
commit576425735e85a1f7f778b1720c6974a7652ccc36 (patch)
treeee9677d58e5efdaee13de44c66a5d6f2b34550dd
parent3301abdca9531d395eee2fd9152c6e45bd4b18b4 (diff)
OSX: fsmenu cleanup
-rw-r--r--source/blender/editors/space_file/fsmenu.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index 2d21a88b214..801c346b1b1 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);