mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
trunk: because of the crashing caused by soundNamed: with some sounds, don't allow custom sounds
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user