summaryrefslogtreecommitdiff
path: root/src/libs/utils/treemodel.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@theqtcompany.com>2015-02-23 12:43:48 +0100
committerhjk <hjk@theqtcompany.com>2015-02-23 11:52:56 +0000
commit7121315a71bddb398c8f628c4343b33c0a1676f5 (patch)
tree9e531f25edc4af9c990ffb57c9611313ded6461c /src/libs/utils/treemodel.cpp
parenta2aaf0f6eb15a833685ce071d70e0712b43cafc8 (diff)
downloadqt-creator-7121315a71bddb398c8f628c4343b33c0a1676f5.tar.gz
Utils: Fix propagation of underlying tree model
Change-Id: I23739cb4c7a19a5c5bcdc8bf39c36db689292b62 Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/libs/utils/treemodel.cpp')
-rw-r--r--src/libs/utils/treemodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/utils/treemodel.cpp b/src/libs/utils/treemodel.cpp
index c582000bcb..3013fac07d 100644
--- a/src/libs/utils/treemodel.cpp
+++ b/src/libs/utils/treemodel.cpp
@@ -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);
}
}