aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPProcessListController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-05-07 23:51:13 +0000
committerstuconnolly <stuart02@gmail.com>2011-05-07 23:51:13 +0000
commit96bc6d783f72032d5b04b4748f915239c56b9bd3 (patch)
treef9dc95e385d035c8a0f4be05b0783576985eb743 /Source/SPProcessListController.m
parent2d68227fd525a377796b6e825bf78bbda7f611b2 (diff)
downloadsequelpro-96bc6d783f72032d5b04b4748f915239c56b9bd3.tar.gz
sequelpro-96bc6d783f72032d5b04b4748f915239c56b9bd3.tar.bz2
sequelpro-96bc6d783f72032d5b04b4748f915239c56b9bd3.zip
Re-add the ability the show the full process list in the server processes panel. Fixes issue #1036.
Diffstat (limited to 'Source/SPProcessListController.m')
-rw-r--r--Source/SPProcessListController.m16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m
index 8062fd93..4caa6a59 100644
--- a/Source/SPProcessListController.m
+++ b/Source/SPProcessListController.m
@@ -62,6 +62,8 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id";
autoRefreshTimer = nil;
processListThreadRunning = NO;
+ showFullProcessList = [prefs boolForKey:SPProcessListShowFullProcessList];
+
processes = [[NSMutableArray alloc] init];
prefs = [NSUserDefaults standardUserDefaults];
@@ -288,6 +290,16 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id";
}
/**
+ * Toggles the display of the FULL process list.
+ */
+- (IBAction)toggeleShowFullProcessList:(id)sender
+{
+ showFullProcessList = (!showFullProcessList);
+
+ [self refreshProcessList:self];
+}
+
+/**
* Toggles whether or not auto refresh is enabled.
*/
- (IBAction)toggleProcessListAutoRefresh:(id)sender
@@ -309,7 +321,7 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id";
}
/**
- *
+ * Displays the set custom auto-refresh interval sheet.
*/
- (IBAction)setCustomAutoRefreshInterval:(id)sender
{
@@ -675,7 +687,7 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id";
// Get processes
if ([connection isConnected]) {
- MCPResult *processList = [connection listProcesses];
+ MCPResult *processList = (showFullProcessList) ? [connection queryString:@"SHOW FULL PROCESSLIST"] : [connection listProcesses];
[processList setReturnDataAsStrings:YES];