diff options
Diffstat (limited to 'Source/SPQueryConsole.m')
-rw-r--r-- | Source/SPQueryConsole.m | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/SPQueryConsole.m b/Source/SPQueryConsole.m index a7c7263d..dab9a9a0 100644 --- a/Source/SPQueryConsole.m +++ b/Source/SPQueryConsole.m @@ -365,6 +365,12 @@ static SPQueryConsole *sharedQueryConsole = nil; return [[self window] validateMenuItem:menuItem]; } +- (void)updateEntries +{ + [consoleTableView reloadData]; + [consoleTableView scrollRowToVisible:([messagesVisibleSet count] - 1)]; +} + /** * Standard dealloc. */ @@ -494,9 +500,11 @@ static SPQueryConsole *sharedQueryConsole = nil; [clearConsoleButton setEnabled:YES]; } - // Reload the table and scroll to the new message - [consoleTableView reloadData]; - [consoleTableView scrollRowToVisible:([messagesVisibleSet count] - 1)]; + // Reload the table and scroll to the new message if it's visible (for speed) + if ( [[self window] isVisible] ) { + [consoleTableView reloadData]; + [consoleTableView scrollRowToVisible:([messagesVisibleSet count] - 1)]; + } } /** |