From 89fa08deb5d9941475b90aa15863705080d64898 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 11 Jun 2009 23:43:13 +0000 Subject: [PATCH] fix whoops with auto-add for users that are having UTI problems --- macosx/Controller.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 6e6edbf71..b38b8aaad 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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);