aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-03-03 21:55:22 +0000
committerrowanbeentje <rowan@beent.je>2010-03-03 21:55:22 +0000
commite9d08a697eaf44b1c620706d55dd619f77d33af1 (patch)
tree79a40c5c8e9f01c647c96d86c142279e0636b3a8
parenta10a86f1326aff47e4b045c987ec8159181ad4ff (diff)
downloadsequelpro-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
-rw-r--r--Source/TableContent.m4
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;
}