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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-10-01 20:14:38 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-10-01 20:15:57 +0300
commitad23ee761bb729f013ffc1f5e32f032bded9dcd6 (patch)
tree1324a8ca36aa55f598b62818a6a449ac3a270dd3 /source/blender/editors/space_file/fsmenu.c
parent4a423862e9fe405f31168f9a1355d6727e7ad923 (diff)
Fix T49502: file browser on OS X not highlighting system folders and bookmarks.
Diffstat (limited to 'source/blender/editors/space_file/fsmenu.c')
-rw-r--r--source/blender/editors/space_file/fsmenu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index e71c05d19c5..72034b4f828 100644
--- a/source/blender/editors/space_file/fsmenu.c
+++ b/source/blender/editors/space_file/fsmenu.c
@@ -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')) {