aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r--Source/SPQueryController.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m
index 25b972bb..c1e632d1 100644
--- a/Source/SPQueryController.m
+++ b/Source/SPQueryController.m
@@ -54,7 +54,6 @@ static SPQueryController *sharedQueryController = nil;
@implementation SPQueryController
@synthesize consoleFont;
-@synthesize allowConsoleUpdate;
/*
* Returns the shared query console.
@@ -403,6 +402,14 @@ static SPQueryController *sharedQueryController = nil;
return [[self window] validateMenuItem:menuItem];
}
+- (BOOL) allowConsoleUpdate {
+ return allowConsoleUpdate;
+}
+- (void) setAllowConsoleUpdate:(BOOL)allowUpdate {
+ allowConsoleUpdate = allowUpdate;
+ if (allowUpdate && [[self window] isVisible]) [self updateEntries];
+}
+
- (void)updateEntries
{
[consoleTableView reloadData];