use full path for autoimport check

This commit is contained in:
Mitchell Livingston 2006-10-31 21:01:12 +00:00
parent 0f75cc7799
commit cd0b6875da
1 changed files with 3 additions and 2 deletions

View File

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