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:
parent
4af3c1c82b
commit
534df72393
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue