diff options
Diffstat (limited to 'archivemodel.cpp')
-rw-r--r-- | archivemodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/archivemodel.cpp b/archivemodel.cpp index 621ee9c..cbca042 100644 --- a/archivemodel.cpp +++ b/archivemodel.cpp @@ -112,6 +112,7 @@ bool ArchiveModel::setData(const QModelIndex &idx, const QVariant &value, int ro } SmTreeItem *item = itemAt(idx); int nodeType = item->data(Type).toInt(); + // handle duplicate key error!!! QSqlQuery updateQuery(mDb); if(nodeType == GenreNode){ updateQuery.prepare("UPDATE genres SET tgenrename = :value WHERE igenres_id = :id"); |