aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r--Source/TablesList.m12
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 -