File browser icon bindings were semi-case-sensitive

We compared the lowercased extension or file name with the case-preserved entry in the bindings.plist file, meaning e.g. ‘Makefile’ never got the intended icon.
This commit is contained in:
Allan Odgaard
2013-07-17 22:01:15 +02:00
parent fa1f4254cb
commit 61bb49ad6e

View File

@@ -17,7 +17,7 @@ static NSImage* CustomIconForPath (NSString* path)
for(NSString* key in map)
{
for(NSString* ext in map[key])
bindings[ext] = key;
bindings[[ext lowercaseString]] = key;
}
});