From 51e8441033d353e29ff808bdfd0dcd10328a3457 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sun, 23 Aug 2009 10:34:35 +0000 Subject: =?UTF-8?q?=E2=80=A2=20further=20improvements=20to=20restore=20a?= =?UTF-8?q?=20SP=20session=20from=20spf=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TablesList.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Source/TablesList.m') diff --git a/Source/TablesList.m b/Source/TablesList.m index dd636f2f..6e34c295 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -1513,13 +1513,13 @@ * Select the supplied row index; added for convenience to allow * use with performSelector:withObject:afterDelay: for re-selection. */ -- (void) selectTableAtIndex:(NSNumber *)rowIndex +- (void) selectTableAtIndex:(NSNumber *)row { -// int rowIndex = [rowIndex intValue]; -// if (rowIndex == NSNotFound || rowIndex > [filteredTables count] || [[filteredTableTypes objectAtIndex:rowIndex] intValue] == SP_TABLETYPE_NONE) -// return; -// -// [tablesListView selectRowIndexes:[NSIndexSet indexSetWithIndex:rowIndex] byExtendingSelection:NO]; + int rowIndex = [row intValue]; + if (rowIndex == NSNotFound || rowIndex > [filteredTables count] || [[filteredTableTypes objectAtIndex:rowIndex] intValue] == SP_TABLETYPE_NONE) + return; + + [tablesListView selectRowIndexes:[NSIndexSet indexSetWithIndex:rowIndex] byExtendingSelection:NO]; } #pragma mark - -- cgit v1.2.3