aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableSource.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-03-07 23:54:24 +0000
committerrowanbeentje <rowan@beent.je>2010-03-07 23:54:24 +0000
commit4c46e5ed3e78002f7f3c791c545f63556d6c8028 (patch)
tree53256b9ee01040429b0d0b61ed18f3d0a471f974 /Source/TableSource.m
parent2938fe935e88af318090cbe463a338ce69d758ea (diff)
downloadsequelpro-4c46e5ed3e78002f7f3c791c545f63556d6c8028.tar.gz
sequelpro-4c46e5ed3e78002f7f3c791c545f63556d6c8028.tar.bz2
sequelpro-4c46e5ed3e78002f7f3c791c545f63556d6c8028.zip
- Fix an exception when table source edit errors occur and the user requests changes be discarded; this addresses http://log.sequelpro.com/view/16
Diffstat (limited to 'Source/TableSource.m')
-rw-r--r--Source/TableSource.m2
1 files changed, 1 insertions, 1 deletions
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;
}