aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-04-06 09:05:54 +0000
committerBibiko <bibiko@eva.mpg.de>2010-04-06 09:05:54 +0000
commitfeea6f33edb02e1cfb1ab907db1dcfaf6bcc360e (patch)
treef8d500c1ad93ce31bed2d90fe11c4708773189a3 /Source/TableDocument.m
parent0f1ccba3a10f2b1a762d6c6b993f0ba824724026 (diff)
downloadsequelpro-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.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m4
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];
}