From cd0b6875da7774c4bc6fd23ec27173a58bf9eb20 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 31 Oct 2006 21:01:12 +0000 Subject: [PATCH] use full path for autoimport check --- macosx/Controller.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 8fb6e02cb..1b5541399 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1570,7 +1570,8 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy if ([[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame) { int error; - tr_torrent_t * tempTor = tr_torrentInit(fLib, [path UTF8String], 0, & error); + tr_torrent_t * tempTor = tr_torrentInit(fLib, [[path stringByAppendingPathComponent: file] UTF8String], + 0, & error); if (tempTor) { @@ -1587,7 +1588,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy notificationName: GROWL_AUTO_ADD iconData: nil priority: 0 isSticky: NO clickContext: nil]; } } - else if (error != TR_EUNSUPPORTED || error != TR_EDUPLICATE) + else if (error != TR_EUNSUPPORTED && error != TR_EDUPLICATE) [fAutoImportedNames removeObjectIdenticalTo: file]; //failed to import for unknown reason, so try again later else; }