diff options
author | rowanbeentje <rowan@beent.je> | 2010-09-18 18:01:20 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-09-18 18:01:20 +0000 |
commit | 7437f0325133123acaaabd844be3d1f2701418df (patch) | |
tree | cc95f89a26b0cc37c54abd714c511c631e87bbf4 /Source/SPCopyTable.m | |
parent | 50c324b28583355740199c8c22a5c4d8bd63c050 (diff) | |
download | sequelpro-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/SPCopyTable.m')
-rw-r--r-- | Source/SPCopyTable.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m index faf1b231..8c6f6525 100644 --- a/Source/SPCopyTable.m +++ b/Source/SPCopyTable.m @@ -120,7 +120,7 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003; if ( [self numberOfColumns] - 1 == column) { if([[self delegate] respondsToSelector:@selector(addRowToDB)]) [[self delegate] addRowToDB]; - [self makeFirstResponder]; + [[self window] makeFirstResponder:self]; } else { // Select the next field for editing [self editColumn:column+1 row:row withEvent:nil select:YES]; @@ -138,7 +138,7 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003; if ( column < 1 ) { if([[self delegate] respondsToSelector:@selector(addRowToDB)]) [[self delegate] addRowToDB]; - [self makeFirstResponder]; + [[self window] makeFirstResponder:self]; } else { // Select the previous field for editing [self editColumn:column-1 row:row withEvent:nil select:YES]; |