aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPProcessListController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPProcessListController.m')
-rw-r--r--Source/SPProcessListController.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m
index c1f52d3c..af160177 100644
--- a/Source/SPProcessListController.m
+++ b/Source/SPProcessListController.m
@@ -26,8 +26,9 @@
#import <MCPKit/MCPKit.h>
#import "SPProcessListController.h"
-#import "SPConstants.h"
#import "SPArrayAdditions.h"
+#import "TableDocument.h"
+#import "SPConstants.h"
@interface SPProcessListController (PrivateAPI)
@@ -277,9 +278,9 @@
*/
- (void)savePanelDidEnd:(NSSavePanel *)panel returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo
{
- if (returnCode == NSAlertDefaultReturn) {
+ if (returnCode == NSOKButton) {
if ([processesFiltered count] > 0) {
- NSMutableString *processesString = [NSMutableString string];
+ NSMutableString *processesString = [NSMutableString stringWithFormat:@"# MySQL server proceese for %@\n\n", [(TableDocument *)[[NSApp mainWindow] delegate] host]];
for (NSDictionary *process in processesFiltered)
{