From 0b1a4fac85d6ba2bb24d38bdf134397ce6561920 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 3 Apr 2013 23:56:59 +0000 Subject: - Fix process list kill query/connection actions not using the correct ID if the list was filtered --- Source/SPProcessListController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source') 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]; -- cgit v1.2.3