better auto importing of incomplete files

This commit is contained in:
Mitchell Livingston 2006-10-31 19:29:38 +00:00
parent f955d93c22
commit f165fb0404
1 changed files with 5 additions and 1 deletions

View File

@ -1574,16 +1574,20 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
//import only actually happened if the torrent array is larger //import only actually happened if the torrent array is larger
if (oldCount < [fTorrents count]) if (oldCount < [fTorrents count])
{
[GrowlApplicationBridge notifyWithTitle: NSLocalizedString(@"Torrent File Auto Added", [GrowlApplicationBridge notifyWithTitle: NSLocalizedString(@"Torrent File Auto Added",
"Growl notification title") description: file "Growl notification title") description: file
notificationName: GROWL_AUTO_ADD iconData: nil priority: 0 isSticky: NO clickContext: nil]; notificationName: GROWL_AUTO_ADD iconData: nil priority: 0 isSticky: NO clickContext: nil];
}
else
[fAutoImportedNames removeObjectIdenticalTo: file]; //failed to import, possibly because not fully downloaded
} }
} }
[newNames release]; [newNames release];
} }
- (int) numberOfRowsInTableView: (NSTableView *) t - (int) numberOfRowsInTableView: (NSTableView *) tableview
{ {
return [fDisplayedTorrents count]; return [fDisplayedTorrents count];
} }