aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableSource.m
diff options
context:
space:
mode:
authormtvee <emptyvee@gmail.com>2009-07-02 21:27:27 +0000
committermtvee <emptyvee@gmail.com>2009-07-02 21:27:27 +0000
commitbd188daad56fcf518665e6b3617aebe4d6708667 (patch)
tree85ec865b2d3b06757ae0f8f87fd23c493186ecc5 /Source/TableSource.m
parent965294442817fcd7ad2fdf1ca002b0a2416b858b (diff)
downloadsequelpro-bd188daad56fcf518665e6b3617aebe4d6708667.tar.gz
sequelpro-bd188daad56fcf518665e6b3617aebe4d6708667.tar.bz2
sequelpro-bd188daad56fcf518665e6b3617aebe4d6708667.zip
small fix for add index sheet default behavior
Diffstat (limited to 'Source/TableSource.m')
-rw-r--r--Source/TableSource.m2
1 files changed, 1 insertions, 1 deletions
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];