diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-04-06 09:05:54 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-04-06 09:05:54 +0000 |
commit | feea6f33edb02e1cfb1ab907db1dcfaf6bcc360e (patch) | |
tree | f8d500c1ad93ce31bed2d90fe11c4708773189a3 | |
parent | 0f1ccba3a10f2b1a762d6c6b993f0ba824724026 (diff) | |
download | sequelpro-feea6f33edb02e1cfb1ab907db1dcfaf6bcc360e.tar.gz sequelpro-feea6f33edb02e1cfb1ab907db1dcfaf6bcc360e.tar.bz2 sequelpro-feea6f33edb02e1cfb1ab907db1dcfaf6bcc360e.zip |
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.
-rw-r--r-- | Source/TableDocument.m | 4 |
1 files 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]; } |