Mac message log: 1. when changing logging level, scroll to bottom, 2. free the message list taken from the core outside the lock

This commit is contained in:
Mitchell Livingston 2009-11-28 21:44:27 +00:00
parent 94f110e314
commit f5655c8d8b
1 changed files with 5 additions and 2 deletions

View File

@ -185,8 +185,6 @@
}
}
tr_freeMessageList(messages);
if (changed)
{
[fDisplayedMessages sortUsingDescriptors: [fMessageTable sortDescriptors]];
@ -197,6 +195,8 @@
}
[fLock unlock];
tr_freeMessageList(messages);
}
- (NSInteger) numberOfRowsInTableView: (NSTableView *) tableView
@ -330,6 +330,9 @@
[fMessageTable deselectAll: nil];
[fMessageTable reloadData];
if ([fDisplayedMessages count] > 0)
[fMessageTable scrollRowToVisible: [fDisplayedMessages count]-1];
[fLock unlock];
}