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:
parent
94f110e314
commit
f5655c8d8b
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue