diff options
author | Arno <am@disconnect.de> | 2012-10-03 15:11:56 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-10-03 15:11:56 +0200 |
commit | deeec5306a37e2280626f3486a07629570aafe92 (patch) | |
tree | 04d8f56c3c6f716c34cdb7d7173263f12149f318 /mappingtreemodel.cpp | |
parent | df88caf7df0f3b43c5498c09466a37670b764b9a (diff) | |
download | SheMov-deeec5306a37e2280626f3486a07629570aafe92.tar.gz SheMov-deeec5306a37e2280626f3486a07629570aafe92.tar.bz2 SheMov-deeec5306a37e2280626f3486a07629570aafe92.zip |
Fix MappEditDialg
Convert to new mapping DB layout. Return the parent ID where necessary
instead of the mapping ID.
Diffstat (limited to 'mappingtreemodel.cpp')
-rw-r--r-- | mappingtreemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |