From ecb95326374568a3cac41ed44c6c8aace0b26877 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 1 Mar 2010 16:39:53 +0000 Subject: In the extended table information view, hide rather than disable the 'reset auto increment' button when no auto increment field is present. --- Source/SPExtendedTableInfo.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SPExtendedTableInfo.m b/Source/SPExtendedTableInfo.m index 00f1fc37..e49fb43c 100644 --- a/Source/SPExtendedTableInfo.m +++ b/Source/SPExtendedTableInfo.m @@ -215,7 +215,7 @@ { BOOL enableInteraction = ![[tableDocumentInstance selectedToolbarItemIdentifier] isEqualToString:SPMainToolbarTableInfo] || ![tableDocumentInstance isWorking]; - [resetAutoIncrementResetButton setEnabled:NO]; + [resetAutoIncrementResetButton setHidden:YES]; // Store the table name away for future use selectedTable = table; @@ -365,7 +365,7 @@ // Validate Reset AUTO_INCREMENT button if([statusFields objectForKey:@"Auto_increment"] && ![[statusFields objectForKey:@"Auto_increment"] isKindOfClass:[NSNull class]]) - [resetAutoIncrementResetButton setEnabled:YES]; + [resetAutoIncrementResetButton setHidden:NO]; } -- cgit v1.2.3