diff options
author | jakob <jakob@eggerapps.at> | 2010-04-14 21:46:12 +0000 |
---|---|---|
committer | jakob <jakob@eggerapps.at> | 2010-04-14 21:46:12 +0000 |
commit | a7fb2c45dcdc8a08775e5bd8c77fa15612955d44 (patch) | |
tree | 5efe79cc51b383ca2b8341a5610cb346f6879391 /Source/TableContent.m | |
parent | 3bcf3a1e6e1f6c8649c81cfd545274b0f62dcfa9 (diff) | |
download | sequelpro-a7fb2c45dcdc8a08775e5bd8c77fa15612955d44.tar.gz sequelpro-a7fb2c45dcdc8a08775e5bd8c77fa15612955d44.tar.bz2 sequelpro-a7fb2c45dcdc8a08775e5bd8c77fa15612955d44.zip |
Clicking the duplicate row button now correctly sets auto_increment fields to NULL and loads blobs
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 6 |
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]; |