From deeec5306a37e2280626f3486a07629570aafe92 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 3 Oct 2012 15:11:56 +0200 Subject: Fix MappEditDialg Convert to new mapping DB layout. Return the parent ID where necessary instead of the mapping ID. --- mappingtreemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mappingtreemodel.cpp') diff --git a/mappingtreemodel.cpp b/mappingtreemodel.cpp index ff7d7d3..f2af964 100644 --- a/mappingtreemodel.cpp +++ b/mappingtreemodel.cpp @@ -386,7 +386,7 @@ MappingData MappingTreeModel::mappingDataFromIndex(QModelIndex &idx) const{ if(!idx.isValid()){ return retval; } - retval.id = idx.data(MappingTreeModel::IdRole).toInt(); + retval.id = idx.data(MappingTreeModel::MapParentIdRole).toInt(); retval.name = idx.data(MappingTreeModel::NameRole).toString(); retval.path = path(idx); return retval; -- cgit v1.2.3-70-g09d2