1
0
Fork 0
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:
Mitchell Livingston 2009-06-11 23:43:13 +00:00
parent 52454105b2
commit 89fa08deb5

View file

@ -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);