aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/TableContent.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index ff3838ae..e95a719f 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -1333,8 +1333,6 @@
//copy row
tempRow = [tableValues rowContentsAtIndex:[tableContentView selectedRow]];
- [tableValues insertRowContents:tempRow atIndex:[tableContentView selectedRow]+1];
- tableRowsCount++;
//if we don't show blobs, read data for this duplicate column from db
if ([prefs boolForKey:SPLoadBlobsAsNeeded]) {
@@ -1360,6 +1358,10 @@
}
}
+ //insert the copied row
+ [tableValues insertRowContents:tempRow atIndex:[tableContentView selectedRow]+1];
+ tableRowsCount++;
+
//select row and go in edit mode
[tableContentView reloadData];
[tableContentView selectRowIndexes:[NSIndexSet indexSetWithIndex:[tableContentView selectedRow]+1] byExtendingSelection:NO];