From 977d1a25340e5c2aef868f43cb180a1d9472b29c Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 5 Apr 2009 00:38:34 +0000 Subject: - Fix an invalid reference to a missing pulldown_arrow image causing invalid log entries - Set the focus to the custom query text field when appropriate when switching to the custom query tab - Add the ability to set the custom query editor font, save and load it from preferences, and no longer reset the font on queries --- Source/TableDocument.m | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/TableDocument.m') diff --git a/Source/TableDocument.m b/Source/TableDocument.m index cd83f007..9e0853e0 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1264,6 +1264,9 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocumentFa [tableTabView selectTabViewItemAtIndex:2]; [mainToolbar setSelectedItemIdentifier:@"SwitchToRunQueryToolbarItemIdentifier"]; + + // Set the focus on the text field if no query has been run + if (![[customQueryTextView string] length]) [tableWindow makeFirstResponder:customQueryTextView]; } - (IBAction)viewStatus:(id)sender -- cgit v1.2.3