aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-07-26 17:47:29 +0000
committerstuconnolly <stuart02@gmail.com>2011-07-26 17:47:29 +0000
commitbf22d64062ed030d75fe0c69c8997d74ce072ff1 (patch)
tree0bb3aba84b705c91f31bcf9f58578da243e2ca32 /Source
parentb4b657cb8179c07f04392de54cd8c6875f12112d (diff)
downloadsequelpro-bf22d64062ed030d75fe0c69c8997d74ce072ff1.tar.gz
sequelpro-bf22d64062ed030d75fe0c69c8997d74ce072ff1.tar.bz2
sequelpro-bf22d64062ed030d75fe0c69c8997d74ce072ff1.zip
SQL export: Disable the 'include drop syntax option' when the structure option is not enabled.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPExportController.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index ffaa242b..3e20fb17 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -582,8 +582,10 @@ static const NSString *SPSQLExportDropEnabled = @"SQLExportDropEnabled";
*/
- (IBAction)toggleSQLIncludeStructure:(id)sender
{
+ [exportSQLIncludeDropSyntaxCheck setEnabled:[sender state]];
[exportSQLIncludeAutoIncrementValueButton setEnabled:[sender state]];
+ [[exportTableList tableColumnWithIdentifier:SPTableViewDropColumnID] setHidden:(![sender state])];
[[exportTableList tableColumnWithIdentifier:SPTableViewStructureColumnID] setHidden:(![sender state])];
[self _toggleExportButtonOnBackgroundThread];