diff options
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 3 |
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 |