From 4c46e5ed3e78002f7f3c791c545f63556d6c8028 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 7 Mar 2010 23:54:24 +0000 Subject: - Fix an exception when table source edit errors occur and the user requests changes be discarded; this addresses http://log.sequelpro.com/view/16 --- Source/TableSource.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/TableSource.m b/Source/TableSource.m index 44a11321..ed624445 100644 --- a/Source/TableSource.m +++ b/Source/TableSource.m @@ -1032,7 +1032,7 @@ fetches the result as an array with a dictionary for each row in it withObject:[NSMutableDictionary dictionaryWithDictionary:oldRow]]; isEditingRow = NO; } else { - [tableFields removeObjectAtIndex:[tableSourceView selectedRow]]; + [tableFields removeObjectAtIndex:currentlyEditingRow]; isEditingRow = NO; isEditingNewRow = NO; } -- cgit v1.2.3