mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +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];
|
||||
|
||||
if (![[[NSWorkspace sharedWorkspace] typeOfFile: fullFile error: NULL] isEqualToString: @"org.bittorrent.torrent"]
|
||||
|| [[fullFile pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame)
|
||||
if (!([[[NSWorkspace sharedWorkspace] typeOfFile: fullFile error: NULL] isEqualToString: @"org.bittorrent.torrent"]
|
||||
|| [[fullFile pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame))
|
||||
continue;
|
||||
|
||||
tr_ctor * ctor = tr_ctorNew(fLib);
|
||||
|
|
Loading…
Reference in a new issue