diff options
-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); + } } { |