diff options
author | Max <post@wickenrode.com> | 2015-07-12 02:27:07 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-07-12 02:27:07 +0200 |
commit | dc1adcaafc3439c1998fdfaf15f0cdeee9be778f (patch) | |
tree | 32e080908ea0c42804f65372fc0b987d06d16173 /Source | |
parent | 1b0938196c23225917b72ea172605adf33d6843d (diff) | |
download | sequelpro-dc1adcaafc3439c1998fdfaf15f0cdeee9be778f.tar.gz sequelpro-dc1adcaafc3439c1998fdfaf15f0cdeee9be778f.tar.bz2 sequelpro-dc1adcaafc3439c1998fdfaf15f0cdeee9be778f.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.m | 3 |
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]; |