From e089b0e91162fb0932bdb88e9905cdd9fb6b94dd Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 17 Feb 2015 21:08:59 +0100 Subject: Amend to previous own Fix T43684: only use hack on WIN32, and use case-insensitive comparison. Thanks to Campbell for the headup. --- source/blender/editors/space_file/fsmenu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/editors') 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 { -- cgit v1.2.3