From e8edacfc5175e91d27d6fcba8e3ffa1b1c80754c Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 12 Jul 2013 17:23:33 +0200 Subject: Dis/enable QActions for ContextMenu Handle actions dependent on type node. --- archivemodel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'archivemodel.cpp') 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"); -- cgit v1.2.3-70-g09d2