From bd188daad56fcf518665e6b3617aebe4d6708667 Mon Sep 17 00:00:00 2001 From: mtvee Date: Thu, 2 Jul 2009 21:27:27 +0000 Subject: small fix for add index sheet default behavior --- Source/TableSource.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/TableSource.m b/Source/TableSource.m index f604f466..58ecbf89 100644 --- a/Source/TableSource.m +++ b/Source/TableSource.m @@ -442,7 +442,7 @@ opens the indexSheet [indexSheet makeFirstResponder:indexedColumnsField]; // Check to see whether a primary key already exists for the table, and if so select an INDEX instead - for (i = 0; i < [indexes count]; i++) { + for (i = 0; i < [tableFields count]; i++) { if ([[[tableFields objectAtIndex:i] objectForKey:@"Key"] isEqualToString:@"PRI"]) { [indexTypeField selectItemAtIndex:1]; [indexNameField setEnabled:YES]; -- cgit v1.2.3