diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-08-23 10:34:35 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-08-23 10:34:35 +0000 |
commit | 51e8441033d353e29ff808bdfd0dcd10328a3457 (patch) | |
tree | c07e8356d89674b22e42667a9f672f1524c26672 /Source/TablesList.m | |
parent | ce3b1d32a5d792e36fa8e4cdcafb4d0e23fafc71 (diff) | |
download | sequelpro-51e8441033d353e29ff808bdfd0dcd10328a3457.tar.gz sequelpro-51e8441033d353e29ff808bdfd0dcd10328a3457.tar.bz2 sequelpro-51e8441033d353e29ff808bdfd0dcd10328a3457.zip |
• further improvements to restore a SP session from spf file
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r-- | Source/TablesList.m | 12 |
1 files changed, 6 insertions, 6 deletions
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 - |