diff options
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r-- | Source/SPExportController.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m index 1bbf7f44..9811a722 100644 --- a/Source/SPExportController.m +++ b/Source/SPExportController.m @@ -42,6 +42,7 @@ #import "SPExportFileNameTokenObject.h" #import "SPDatabaseDocument.h" #import "SPThreadAdditions.h" +#import "SPCustomQuery.h" #import <SPMySQL/SPMySQL.h> @@ -714,7 +715,7 @@ static const NSString *SPSQLExportDropEnabled = @"SQLExportDropEnabled"; - (BOOL)validateMenuItem:(NSMenuItem *)menuItem { if ([menuItem action] == @selector(exportCustomQueryResultAsFormat:)) { - return (([[customQueryInstance currentResult] count] > 1) && (![tableDocumentInstance isProcessing])); + return (([customQueryInstance currentResultRowCount] > 0) && (![tableDocumentInstance isProcessing])); } return YES; |