From 4002f28ba489690a2e2e694779785e035370bbfb Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 12 Jul 2015 02:27:07 +0200 Subject: 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. --- Source/SPFieldEditorController.m | 3 --- 1 file changed, 3 deletions(-) (limited to 'Source') 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]; -- cgit v1.2.3