From d73a297c2daed1b70625d19a70cee48db192956f Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 8 Jul 2014 11:26:39 +0200 Subject: Fix MappingTreeResultModel for good removeRows and insertRows is buggy. Unfortunately I can't figure out how... So make it easy and reset the model on inserts and removals. --- mappingtreemodel.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mappingtreemodel.h') diff --git a/mappingtreemodel.h b/mappingtreemodel.h index a730aaa..1b5f3ea 100644 --- a/mappingtreemodel.h +++ b/mappingtreemodel.h @@ -90,6 +90,7 @@ class MappingTreeResultModel : public SmTreeModel { public slots: void addItem(const MappingData &data); + void removeItem(const QModelIndex &idx); private: int hasChild(SmTreeItem *item, const QVariant &name, int column = 0) const; -- cgit v1.2.3-70-g09d2