1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

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

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