From feea6f33edb02e1cfb1ab907db1dcfaf6bcc360e Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 6 Apr 2010 09:05:54 +0000 Subject: If user selects the Query Editor window set always the focus on the text view regardless if the content is empty or not, since it's very likely that the user wants to change it. This should solve i483. --- Source/TableDocument.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/TableDocument.m b/Source/TableDocument.m index b8527698..14af042e 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -3242,8 +3242,8 @@ [mainToolbar setSelectedItemIdentifier:SPMainToolbarCustomQuery]; [spHistoryControllerInstance updateHistoryEntries]; - // Set the focus on the text field if no query has been run - if (![[customQueryTextView string] length]) [tableWindow makeFirstResponder:customQueryTextView]; + // Set the focus on the text field + [tableWindow makeFirstResponder:customQueryTextView]; [prefs setInteger:SPQueryEditorViewMode forKey:SPLastViewMode]; } -- cgit v1.2.3