Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevgeny Makarov <jenkm>2020-01-20 16:47:00 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2020-01-20 16:50:18 +0300
commit5c5f2bd221ca5dc3d7344f4595f05ad60d525b7d (patch)
tree9a68969a515c3dd43fd8009508610788ee39e46d /source/blender/editors/space_file
parent81befded7bb1276e6f284d69dce7d6742b4f31b7 (diff)
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
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/fsmenu.c6
1 files changed, 3 insertions, 3 deletions
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);
}