From 2a56e7483e29b26808e796a41be8ac4fc08926fb Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 17 Nov 2012 08:10:18 +0100 Subject: More fallout from the MappingTreeModel fix Forgot to fix the Edit widget... While at it, refresh the view if mappings changed in PicturesWidget. --- mappingtreemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mappingtreemodel.cpp') diff --git a/mappingtreemodel.cpp b/mappingtreemodel.cpp index eed7d51..3d595c1 100644 --- a/mappingtreemodel.cpp +++ b/mappingtreemodel.cpp @@ -191,7 +191,7 @@ bool MappingTreeModel::setData(const QModelIndex &index, const QVariant &value, q = mUpdateChildQ; } q->bindValue(":value", value); - q->bindValue(":id", item->data(MappingId)); + q->bindValue(":id", item->data(DescId)); if(q->exec()){ item->setData(Name, value); emit dataChanged(index, index); -- cgit v1.2.3-70-g09d2