aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-04-05 00:38:34 +0000
committerrowanbeentje <rowan@beent.je>2009-04-05 00:38:34 +0000
commit977d1a25340e5c2aef868f43cb180a1d9472b29c (patch)
tree6bd393f8a26c583d071289ddc349f8db98782f28 /Source/TableDocument.m
parentbe9d9739ab37719ce761ee7c1e7c97ec2aa8a76d (diff)
downloadsequelpro-977d1a25340e5c2aef868f43cb180a1d9472b29c.tar.gz
sequelpro-977d1a25340e5c2aef868f43cb180a1d9472b29c.tar.bz2
sequelpro-977d1a25340e5c2aef868f43cb180a1d9472b29c.zip
- 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
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m3
1 files changed, 3 insertions, 0 deletions
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