diff options
Diffstat (limited to 'common/modelresult.cpp')
-rw-r--r-- | common/modelresult.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/modelresult.cpp b/common/modelresult.cpp index 65eaba9..930048f 100644 --- a/common/modelresult.cpp +++ b/common/modelresult.cpp | |||
@@ -141,7 +141,7 @@ void ModelResult<T, Ptr>::add(const Ptr &value) | |||
141 | return; | 141 | return; |
142 | } | 142 | } |
143 | // qDebug() << "Inserting rows " << index << parent; | 143 | // qDebug() << "Inserting rows " << index << parent; |
144 | beginInsertRows(QModelIndex(), index, index); | 144 | beginInsertRows(parent, index, index); |
145 | mEntities.insert(childId, value); | 145 | mEntities.insert(childId, value); |
146 | mTree[id].insert(index, childId); | 146 | mTree[id].insert(index, childId); |
147 | mParents.insert(childId, id); | 147 | mParents.insert(childId, id); |