diff options
author | rowanbeentje <rowan@beent.je> | 2010-03-03 21:55:22 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-03-03 21:55:22 +0000 |
commit | e9d08a697eaf44b1c620706d55dd619f77d33af1 (patch) | |
tree | 79a40c5c8e9f01c647c96d86c142279e0636b3a8 /Source | |
parent | a10a86f1326aff47e4b045c987ec8159181ad4ff (diff) | |
download | sequelpro-e9d08a697eaf44b1c620706d55dd619f77d33af1.tar.gz sequelpro-e9d08a697eaf44b1c620706d55dd619f77d33af1.tar.bz2 sequelpro-e9d08a697eaf44b1c620706d55dd619f77d33af1.zip |
- Fix an exception/crash when content edit errors occur and the user requests changs be discarded
Diffstat (limited to 'Source')
-rw-r--r-- | Source/TableContent.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index fc12dccf..4a69e67a 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -2136,11 +2136,11 @@ [tableContentView performSelector:@selector(keyDown:) withObject:[NSEvent keyEventWithType:NSKeyDown location:NSMakePoint(0,0) modifierFlags:0 timestamp:0 windowNumber:[tableWindow windowNumber] context:[NSGraphicsContext currentContext] characters:nil charactersIgnoringModifiers:nil isARepeat:NO keyCode:0x24] afterDelay:0.0]; } else { if ( !isEditingNewRow ) { - [tableValues replaceRowAtIndex:[tableContentView selectedRow] withRowContents:oldRow]; + [tableValues replaceRowAtIndex:currentlyEditingRow withRowContents:oldRow]; isEditingRow = NO; } else { tableRowsCount--; - [tableValues removeRowAtIndex:[tableContentView selectedRow]]; + [tableValues removeRowAtIndex:currentlyEditingRow]; isEditingRow = NO; isEditingNewRow = NO; } |