aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-01 16:39:53 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-01 16:39:53 +0000
commitecb95326374568a3cac41ed44c6c8aace0b26877 (patch)
tree4b62a3094c474b23e85feb59debe10ca4e0d8458 /Source
parentb91ee5c9ee79e2407b85155748ad35d698cca574 (diff)
downloadsequelpro-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.m4
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];
}