aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-17 08:04:13 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-17 08:04:13 +0000
commit5eca837c7b35dc6c7a22d32e482399c897f0a566 (patch)
tree99e213d0dad916335c4092b9b958bdb60340c402 /Source/SPDatabaseDocument.m
parent3d87e7f7150c40fb4434bb4be05665da0a8915dc (diff)
downloadsequelpro-5eca837c7b35dc6c7a22d32e482399c897f0a566.tar.gz
sequelpro-5eca837c7b35dc6c7a22d32e482399c897f0a566.tar.bz2
sequelpro-5eca837c7b35dc6c7a22d32e482399c897f0a566.zip
• if a text string is dragged on tab this tab will be selected and the corresponding db doc switches to Custom Query editor to be able eg to drag a query from one tab to another one
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m8
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