Commit 7121315a authored by Christian Stenger's avatar Christian Stenger Committed by hjk

Utils: Fix propagation of underlying tree model

Change-Id: I23739cb4c7a19a5c5bcdc8bf39c36db689292b62
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent a2aaf0f6
......@@ -705,6 +705,8 @@ void TreeItem::insertChild(int pos, TreeItem *item)
m_model->endInsertRows();
} else {
item->m_parent = this;
if (m_model)
item->propagateModel(m_model);
m_children.insert(m_children.begin() + pos, item);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment