aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-09-18 18:01:20 +0000
committerrowanbeentje <rowan@beent.je>2010-09-18 18:01:20 +0000
commit7437f0325133123acaaabd844be3d1f2701418df (patch)
treecc95f89a26b0cc37c54abd714c511c631e87bbf4 /Source/SPCustomQuery.m
parent50c324b28583355740199c8c22a5c4d8bd63c050 (diff)
downloadsequelpro-7437f0325133123acaaabd844be3d1f2701418df.tar.gz
sequelpro-7437f0325133123acaaabd844be3d1f2701418df.tar.bz2
sequelpro-7437f0325133123acaaabd844be3d1f2701418df.zip
- Remove a number of invalid [NSTableView makeFirstResponder] calls that had crept into the source, replacing with the correct [NSWindow makeFirstResponder:NSTableView]. This fixes a number of exceptions.
- Update localisable strings.
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index ae1b01c0..35401d97 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -2296,7 +2296,7 @@
if ( editData ) [editData release];
// Preserve focus and restore selection indexes if appropriate
- [customQueryView makeFirstResponder];
+ [[tableDocumentInstance parentWindow] makeFirstResponder:customQueryView];
if (selectionIndexToRestore)
[customQueryView selectRowIndexes:selectionIndexToRestore byExtendingSelection:NO];
@@ -3607,7 +3607,7 @@
[control abortEditing];
// Preserve the focus
- [customQueryView makeFirstResponder];
+ [[tableDocumentInstance parentWindow] makeFirstResponder:customQueryView];
return TRUE;
}