diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-02-17 23:08:59 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-02-17 23:10:08 +0300 |
commit | e089b0e91162fb0932bdb88e9905cdd9fb6b94dd (patch) | |
tree | f8dc305fb828e77e9a8a792748843bdaa7de2904 /source/blender/editors/space_file/fsmenu.c | |
parent | 5115e862460203c5e31bb5d62acc3fda2b0cc2bd (diff) |
Amend to previous own Fix T43684: only use hack on WIN32, and use case-insensitive comparison.
Thanks to Campbell for the headup.
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 0cbb31b5f5a..6b4ee318633 100644 --- a/source/blender/editors/space_file/fsmenu.c +++ b/source/blender/editors/space_file/fsmenu.c @@ -219,6 +219,7 @@ void ED_fsmenu_entry_set_name(struct FSMenuEntry *fsentry, const char *name) void fsmenu_entry_refresh_valid(struct FSMenuEntry *fsentry) { if (fsentry->path && fsentry->path[0]) { +#ifdef WIN32 /* XXX Special case, always consider those as valid. * Thanks to Windows, which can spend five seconds to perform a mere stat() call on those paths... * See T43684. @@ -228,11 +229,12 @@ void fsmenu_entry_refresh_valid(struct FSMenuEntry *fsentry) int i; for (i = 0; exceptions[i]; i++) { - if (STREQLEN(fsentry->path, exceptions[i], exceptions_len[i])) { + if (STRCASEEQLEN(fsentry->path, exceptions[i], exceptions_len[i])) { fsentry->valid = true; return; } } +#endif fsentry->valid = BLI_is_dir(fsentry->path); } else { |