Fix T49502: file browser on OS X not highlighting system folders and bookmarks.

This commit is contained in:
Brecht Van Lommel 2016-10-01 19:14:38 +02:00 committed by Sergey Sharybin
parent 4a8c43d756
commit 9fea90ba36
1 changed files with 3 additions and 0 deletions

View File

@ -559,6 +559,9 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
if (pathString == NULL || !CFStringGetCString(pathString, line, sizeof(line), kCFStringEncodingUTF8))
continue;
/* Add end slash for consistency with other platforms */
BLI_add_slash(line);
/* Exclude "all my files" as it makes no sense in blender fileselector */
/* Exclude "airdrop" if wlan not active as it would show "" ) */
if (!strstr(line, "myDocuments.cannedSearch") && (*line != '\0')) {