1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

trunk: because of the crashing caused by soundNamed: with some sounds, don't allow custom sounds

This commit is contained in:
Mitchell Livingston 2007-10-24 21:33:04 +00:00
parent 4af3c1c82b
commit 534df72393

View file

@ -309,8 +309,9 @@
{
NSMutableArray * sounds = [NSMutableArray array];
//until Apple can fix soundNamed to not crash on invalid sound files, don't use custom sounds
NSArray * directories = [NSArray arrayWithObjects: @"/System/Library/Sounds", @"/Library/Sounds",
[NSHomeDirectory() stringByAppendingPathComponent: @"Library/Sounds"], nil];
/*[NSHomeDirectory() stringByAppendingPathComponent: @"Library/Sounds"],*/ nil];
BOOL isDirectory;
NSEnumerator * soundEnumerator;
NSString * sound;