From d99ae49a194fc4bfce874c535096e4f68ef70d6e Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 1 Jun 2010 22:10:57 +0000 Subject: Fix export dialog interface validation when switching between data formats. Fixes issue #714. --- Source/SPExportController.m | 6 +++--- 1 file 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"]; -- cgit v1.2.3