aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-07-12 02:27:07 +0200
committerMax <post@wickenrode.com>2015-07-12 22:29:00 +0200
commit4002f28ba489690a2e2e694779785e035370bbfb (patch)
tree1b564befdcb71888614b44f2ca752c90e7c059fa /Source
parent1d857c30e20edc2779f1e1af825257ab982bb271 (diff)
downloadsequelpro-4002f28ba489690a2e2e694779785e035370bbfb.tar.gz
sequelpro-4002f28ba489690a2e2e694779785e035370bbfb.tar.bz2
sequelpro-4002f28ba489690a2e2e694779785e035370bbfb.zip
Fix an issue on 10.7+ introduced in ce33534
This removes a IMHO useless makeFirstResponder: call. In all cases where [NSApp mainWindow] == usedSheet (< 10.7) the call right above it would already handle it. On the other hand if [NSApp mainWindow] != usedSheet (10.7+) the call would fail anyways because in that case editTextView is not even a subview of the main window.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPFieldEditorController.m3
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index fe9359da..8c5c72ae 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -524,9 +524,6 @@ typedef enum {
[hexTextView setHidden:YES];
[hexTextScrollView setHidden:YES];
[usedSheet makeFirstResponder:editTextView];
-#ifndef SP_CODA
- [[NSApp mainWindow] makeFirstResponder:editTextView];
-#endif
break;
case ImageSegment:
[editTextView setHidden:YES];