diff options
author | Guillermo S. Romero <gsr.b3d@infernal-iceberg.com> | 2009-07-30 02:37:33 +0400 |
---|---|---|
committer | Guillermo S. Romero <gsr.b3d@infernal-iceberg.com> | 2009-07-30 02:37:33 +0400 |
commit | 2df1eeba0e212fe551f2e4cbfe222bd36026670f (patch) | |
tree | 55ed228f655a23331d431258bdce2d3c0509dd2f /source/blender/editors/space_file/fsmenu.c | |
parent | 80015c886791c3a89dba8b37a0fc6a97cbd3f87c (diff) |
Only show ~/Desktop/ if really exists.
Diffstat (limited to 'source/blender/editors/space_file/fsmenu.c')
-rw-r--r-- | source/blender/editors/space_file/fsmenu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c index 73233431fd8..b45b57c6be9 100644 --- a/source/blender/editors/space_file/fsmenu.c +++ b/source/blender/editors/space_file/fsmenu.c @@ -311,7 +311,9 @@ void fsmenu_read_file(struct FSMenu* fsmenu, const char *filename) BLI_snprintf(dir, FILE_MAXDIR, "%s/", home); fsmenu_insert_entry(fsmenu, FS_CATEGORY_BOOKMARKS, dir, 1, 0); BLI_snprintf(dir, FILE_MAXDIR, "%s/Desktop/", home); - fsmenu_insert_entry(fsmenu, FS_CATEGORY_BOOKMARKS, dir, 1, 0); + if (BLI_exists(dir)) { + fsmenu_insert_entry(fsmenu, FS_CATEGORY_BOOKMARKS, dir, 1, 0); + } } { |