From 1e84e246d1a4e0b24657e9c416c6ce4a0eb002d5 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 9 Jul 2014 14:05:15 +0200 Subject: Fix commit dc7cc269a4fffe43bdac2ae2dc6548fbd1e3bb5e Since that commit we not only recorded leaves for Mappings, but also the nodes. This is plain wrong, since we build the path/tree ourselves where it matters (e.g. MappingTreeItem). Fix it by checking recursively if the MappingItem has children. --- mappingtreemodel.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mappingtreemodel.h') diff --git a/mappingtreemodel.h b/mappingtreemodel.h index 1b5f3ea..6b20dbc 100644 --- a/mappingtreemodel.h +++ b/mappingtreemodel.h @@ -85,6 +85,7 @@ class MappingTreeResultModel : public SmTreeModel { Qt::ItemFlags flags(const QModelIndex &index) const; virtual QVariant data(const QModelIndex &index, int role) const; virtual bool setData(const QModelIndex &index, const QVariant &value, int role); + QList getMappings(SmTreeItem *start) const; QList columnValues(int column) const; void clearData(); -- cgit v1.2.3-70-g09d2