From 5eca837c7b35dc6c7a22d32e482399c897f0a566 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 17 Jun 2010 08:04:13 +0000 Subject: =?UTF-8?q?=E2=80=A2=20if=20a=20text=20string=20is=20dragged=20on?= =?UTF-8?q?=20tab=20this=20tab=20will=20be=20selected=20and=20the=20corres?= =?UTF-8?q?ponding=20db=20doc=20switches=20to=20Custom=20Query=20editor=20?= =?UTF-8?q?to=20be=20able=20eg=20to=20drag=20a=20query=20from=20one=20tab?= =?UTF-8?q?=20to=20another=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPDatabaseDocument.m | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/SPDatabaseDocument.m') diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index c5381114..a36591e8 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -3468,6 +3468,14 @@ [connectionController addFavorite:self]; } +/** + * 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. */ -- cgit v1.2.3