mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
fix whoops with auto-add for users that are having UTI problems
This commit is contained in:
parent
52454105b2
commit
89fa08deb5
1 changed files with 2 additions and 2 deletions
|
@ -2456,8 +2456,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||||
|
|
||||||
NSString * fullFile = [path stringByAppendingPathComponent: file];
|
NSString * fullFile = [path stringByAppendingPathComponent: file];
|
||||||
|
|
||||||
if (![[[NSWorkspace sharedWorkspace] typeOfFile: fullFile error: NULL] isEqualToString: @"org.bittorrent.torrent"]
|
if (!([[[NSWorkspace sharedWorkspace] typeOfFile: fullFile error: NULL] isEqualToString: @"org.bittorrent.torrent"]
|
||||||
|| [[fullFile pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame)
|
|| [[fullFile pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
tr_ctor * ctor = tr_ctorNew(fLib);
|
tr_ctor * ctor = tr_ctorNew(fLib);
|
||||||
|
|
Loading…
Reference in a new issue