diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2012-11-02 14:33:54 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2012-11-02 14:33:54 +0400 |
commit | b3c1aae32019cce5e36fa70bc9fa81e451f79c78 (patch) | |
tree | d04e0d5d9bcb78a2fb95c35b1eb1fce4ba94f2ff /source/blender/editors | |
parent | a31449edaddc1be80676c77babf079a9f137c42d (diff) |
OSX: suppress meaningless /net and /home in fileselector also on 10.5+
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_file/fsmenu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c index 56cb2860f6f..a5647c06b92 100644 --- a/source/blender/editors/space_file/fsmenu.c +++ b/source/blender/editors/space_file/fsmenu.c @@ -456,7 +456,10 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks) FSRefMakePath(&dir, path, FILE_MAX); - fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM, (char *)path, FS_INSERT_SORTED); + if (strcmp((char *)path, "/home") && strcmp((char *)path, "/net")) { + /* /net and /home are meaningless on OSX, home folders are stored in /Users */ + fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM, (char *)path, FS_INSERT_SORTED); + } } /* Finally get user favorite places */ |