[Bf-blender-cvs] [5c5f2bd221c] blender-v2.82-release: Fix file browser not excluding AirDrop from the System list on macOS

Yevgeny Makarov noreply at git.blender.org
Mon Jan 20 14:50:52 CET 2020


Commit: 5c5f2bd221ca5dc3d7344f4595f05ad60d525b7d
Author: Yevgeny Makarov
Date:   Mon Jan 20 14:47:00 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB5c5f2bd221ca5dc3d7344f4595f05ad60d525b7d

Fix file browser not excluding AirDrop from the System list on macOS

There is already code for this, it just wasn't working. Now add the
slash after checking for an empty string.

Differential Revision: https://developer.blender.org/D6568

===================================================================

M	source/blender/editors/space_file/fsmenu.c

===================================================================

diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index f9506da39a8..fc03453a5cc 100644
--- a/source/blender/editors/space_file/fsmenu.c
+++ b/source/blender/editors/space_file/fsmenu.c
@@ -616,12 +616,12 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
           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')) {
+          /* Add end slash for consistency with other platforms */
+          BLI_add_slash(line);
+
           fsmenu_insert_entry(
               fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, NULL, ICON_FILE_FOLDER, FS_INSERT_LAST);
         }



More information about the Bf-blender-cvs mailing list