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 01:44:58 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-10-15 15:06:10 +0400
commitc2ef758cbeefc250c04ffa309d2bbfae0d4168dd (patch)
tree18de645c3b114377aab5de612ce0afc2673f1ff5
parent204dff6e2e1b701dcf94d652b55943a751da1f09 (diff)
OSX: adapt fs_menue to modern entries handling
-rw-r--r--source/blender/editors/space_file/fsmenu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index 1915f45fc87..2d21a88b214 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);