diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-01 16:39:53 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-01 16:39:53 +0000 |
commit | ecb95326374568a3cac41ed44c6c8aace0b26877 (patch) | |
tree | 4b62a3094c474b23e85feb59debe10ca4e0d8458 /Source | |
parent | b91ee5c9ee79e2407b85155748ad35d698cca574 (diff) | |
download | sequelpro-ecb95326374568a3cac41ed44c6c8aace0b26877.tar.gz sequelpro-ecb95326374568a3cac41ed44c6c8aace0b26877.tar.bz2 sequelpro-ecb95326374568a3cac41ed44c6c8aace0b26877.zip |
In the extended table information view, hide rather than disable the 'reset auto increment' button when no auto increment field is present.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPExtendedTableInfo.m | 4 |
1 files 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]; } |