diff options
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index c5381114..a36591e8 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -3469,6 +3469,14 @@ } /** + * Return YES if Custom Query is active. + */ +- (BOOL)isCustomQuerySelected +{ + return [[self selectedToolbarItemIdentifier] isEqualToString:SPMainToolbarCustomQuery]; +} + +/** * Called when the NSSavePanel sheet ends. Writes the server variables to the selected file if required. */ - (void)savePanelDidEnd:(NSSavePanel *)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo |