diff options
author | rowanbeentje <rowan@beent.je> | 2013-04-03 23:56:59 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-04-03 23:56:59 +0000 |
commit | 0b1a4fac85d6ba2bb24d38bdf134397ce6561920 (patch) | |
tree | a69a6e0ba79a733fcbdae17f1eeaa23151ae6e3e | |
parent | 91d6518ac27d6b9daad29d4bcb2bf54c07925a16 (diff) | |
download | sequelpro-0b1a4fac85d6ba2bb24d38bdf134397ce6561920.tar.gz sequelpro-0b1a4fac85d6ba2bb24d38bdf134397ce6561920.tar.bz2 sequelpro-0b1a4fac85d6ba2bb24d38bdf134397ce6561920.zip |
- Fix process list kill query/connection actions not using the correct ID if the list was filtered
-rw-r--r-- | Source/SPProcessListController.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m index c695c2e2..2b26eb90 100644 --- a/Source/SPProcessListController.m +++ b/Source/SPProcessListController.m @@ -246,7 +246,7 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id"; // No process selected. Interface validation should prevent this. if ([processListTableView numberOfSelectedRows] != 1) return; - long long processId = [[[processes objectAtIndex:[processListTableView selectedRow]] valueForKey:@"Id"] longLongValue]; + long long processId = [[[processesFiltered objectAtIndex:[processListTableView selectedRow]] valueForKey:@"Id"] longLongValue]; NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Kill query?", @"kill query message") defaultButton:NSLocalizedString(@"Kill", @"kill button") @@ -274,7 +274,7 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id"; // No process selected. Interface validation should prevent this. if ([processListTableView numberOfSelectedRows] != 1) return; - long long processId = [[[processes objectAtIndex:[processListTableView selectedRow]] valueForKey:@"Id"] longLongValue]; + long long processId = [[[processesFiltered objectAtIndex:[processListTableView selectedRow]] valueForKey:@"Id"] longLongValue]; NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Kill connection?", @"kill connection message") defaultButton:NSLocalizedString(@"Kill", @"kill button") @@ -382,7 +382,7 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id"; [self _startAutoRefreshTimerWithInterval:[customIntervalTextField integerValue]]; } else { - long long processId = [[[processes objectAtIndex:[processListTableView selectedRow]] valueForKey:@"Id"] longLongValue]; + long long processId = [[[processesFiltered objectAtIndex:[processListTableView selectedRow]] valueForKey:@"Id"] longLongValue]; if ([contextInfo isEqualToString:SPKillProcessQueryMode]) { [self _killProcessQueryWithId:processId]; |