aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-06-01 22:10:57 +0000
committerstuconnolly <stuart02@gmail.com>2010-06-01 22:10:57 +0000
commitd99ae49a194fc4bfce874c535096e4f68ef70d6e (patch)
tree79ee8f7bdc04bbb63b69b18fe39ae9d940ca06ad
parentf65e0fe8e01e81ec282347088f4cc8f43e12dc2e (diff)
downloadsequelpro-d99ae49a194fc4bfce874c535096e4f68ef70d6e.tar.gz
sequelpro-d99ae49a194fc4bfce874c535096e4f68ef70d6e.tar.bz2
sequelpro-d99ae49a194fc4bfce874c535096e4f68ef70d6e.zip
Fix export dialog interface validation when switching between data formats. Fixes issue #714.
-rw-r--r--Source/SPExportController.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index fc858312..3b42104c 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -318,9 +318,9 @@
[[exportInputMatrix cellAtRow:0 column:0] setEnabled:((disable) && ([[tableContentInstance currentResult] count] > 1))];
[[exportInputMatrix cellAtRow:1 column:0] setEnabled:((disable) && ([[customQueryInstance currentResult] count] > 1))];
}
-
- [[exportTableList tableColumnWithIdentifier:@"structure"] setHidden:disable];
- [[exportTableList tableColumnWithIdentifier:@"drop"] setHidden:disable];
+
+ [[exportTableList tableColumnWithIdentifier:@"structure"] setHidden:(isSQL) ? (![exportSQLIncludeStructureCheck state]) : disable];
+ [[exportTableList tableColumnWithIdentifier:@"drop"] setHidden:(isSQL) ? (![exportSQLIncludeDropSyntaxCheck state]) : disable];
[[[exportTableList tableColumnWithIdentifier:@"content"] headerCell] setStringValue:(disable) ? @"" : @"C"];