Only show ~/Desktop/ if really exists.
authorGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>
Wed, 29 Jul 2009 22:37:33 +0000 (22:37 +0000)
committerGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>
Wed, 29 Jul 2009 22:37:33 +0000 (22:37 +0000)
source/blender/editors/space_file/fsmenu.c

index 73233431fd80f36b0a7d430acc82816dd53c8d08..b45b57c6be9ef5262fb194bae2db5689a5d89f9b 100644 (file)
@@ -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);
+                       }
                }
 
                {