aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-08-17 19:21:55 +0000
committerstuconnolly <stuart02@gmail.com>2011-08-17 19:21:55 +0000
commit8ec90a3e7efa8d4399a377752e66783776de4865 (patch)
tree1251b7b20b9f763c47fa6d6bd23b77e31b9f34bb
parent22f2e47959158cf33704481353a65b6d3b242b88 (diff)
downloadsequelpro-8ec90a3e7efa8d4399a377752e66783776de4865.tar.gz
sequelpro-8ec90a3e7efa8d4399a377752e66783776de4865.tar.bz2
sequelpro-8ec90a3e7efa8d4399a377752e66783776de4865.zip
During an SQL export, if the structure is disabled also uncheck the include DROP sytax option.
-rw-r--r--Source/SPExportController.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index 3e20fb17..df95d204 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -582,6 +582,11 @@ static const NSString *SPSQLExportDropEnabled = @"SQLExportDropEnabled";
*/
- (IBAction)toggleSQLIncludeStructure:(id)sender
{
+ if (![sender state])
+ {
+ [exportSQLIncludeDropSyntaxCheck setState:NSOffState];
+ }
+
[exportSQLIncludeDropSyntaxCheck setEnabled:[sender state]];
[exportSQLIncludeAutoIncrementValueButton setEnabled:[sender state]];