diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-08-26 18:53:33 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-08-26 18:53:33 +0000 |
commit | 85290111df9004529db698745acc98a21a8d1996 (patch) | |
tree | a07537e62e6fd64e31c60ec652e37e28ed0e89d1 /Source/SPCopyTable.m | |
parent | 09b1063c73206cffb1819530498ef209e393a1a3 (diff) | |
download | sequelpro-85290111df9004529db698745acc98a21a8d1996.tar.gz sequelpro-85290111df9004529db698745acc98a21a8d1996.tar.bz2 sequelpro-85290111df9004529db698745acc98a21a8d1996.zip |
• removed onMainThread for [Content/CustomTable makeFirstResponder] to avoid the trampoline exceptions
• unified error message while cell editing
• in Custom Query table cell editing errors are displayed as tooltips and added these message if edit event comes from the keyboard
• fixed: check edit status in Content Tables only for views to avoid unnecessary queries
• used [SPCustomQuery fieldEditStatusForRow:andColumn:] consequently to simplify code
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 db8ce49d..962557f1 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 onMainThread] makeFirstResponder]; + [self makeFirstResponder]; } 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 onMainThread] makeFirstResponder]; + [self makeFirstResponder]; } else { // Select the previous field for editing [self editColumn:column-1 row:row withEvent:nil select:YES]; |