Do not ignore error when inserting rows in 'Duplicate record'

That avoids overwriting existing record as reported in issue #1255.

This doesn't improve the underlying situation, that is inserting empty rows
before duplicating the content. But it is safer to not ignore the error in
the initial row insertion.
This commit is contained in:
mgrojo
2017-12-10 15:34:05 +01:00
parent 5807c0be6b
commit 7ed1b1db05
3 changed files with 15 additions and 3 deletions
+1
View File
@@ -191,6 +191,7 @@ private:
void enableEditing(bool enable_edit, bool enable_insertdelete);
void loadExtensionsFromSettings();
void saveAsView(QString query);
void duplicateRecord(int currentRow);
sqlb::ObjectIdentifier currentlyBrowsedTableName() const;