avoid a potential crash when removing transfers

This commit is contained in:
Mitchell Livingston 2009-12-07 03:53:52 +00:00
parent 769629499e
commit 888034385c
3 changed files with 6 additions and 3 deletions

2
NEWS
View File

@ -1,7 +1,7 @@
=== Transmission 1.80 (In Development) ===
[http://trac.transmissionbt.com/query?milestone=1.80&group=component&groupdesc=1&order=severity All tickets closed by this release]
==== All Platforms ====
* Added support for Magnet links
* Magnet link support
* If a torrent has multiple tracker tiers, announce to them in parallel
* Add optional "incomplete directory" where partial downloads are stored
* Trackerless torrent support

View File

@ -356,9 +356,13 @@
- (void) clearLog: (id) sender
{
[fLock lock];
[fMessages removeAllObjects];
[fDisplayedMessages removeAllObjects];
[fMessageTable reloadData];
[fLock unlock];
}
- (void) writeToFile: (id) sender

View File

@ -579,7 +579,7 @@ int trashDataFile(const char * filename)
- (NSString *) name
{
return [NSString stringWithUTF8String: fInfo->name];
return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : @"";
}
- (BOOL) isFolder
@ -1753,7 +1753,6 @@ int trashDataFile(const char * filename)
[self createFileList];
#warning only call when torrent is selected
[[NSNotificationCenter defaultCenter] postNotificationName: @"ResetInspector" object: self];
}