diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-02-16 12:19:26 +0100 |
---|---|---|
committer | Andre Poenitz <andre.poenitz@theqtcompany.com> | 2015-02-16 14:27:23 +0200 |
commit | 9159799a2aaa4622471f6bf7eabb884989d4a9b3 (patch) | |
tree | 496730319ebbd70e12678876ef6f963277b9ae4f /plugins/autotest/testtreeitem.cpp | |
parent | 81e4659a085311e6dfa526554c203a49a07d5e2b (diff) | |
download | qt-creator-9159799a2aaa4622471f6bf7eabb884989d4a9b3.tar.gz |
Fix modifyContent() to take type in account as well
Change-Id: I1a4aeb10243afc5514330fceb3f502d9ea4432d1
Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
Diffstat (limited to 'plugins/autotest/testtreeitem.cpp')
-rw-r--r-- | plugins/autotest/testtreeitem.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/autotest/testtreeitem.cpp b/plugins/autotest/testtreeitem.cpp index 83983db2ef..ae6ab2e671 100644 --- a/plugins/autotest/testtreeitem.cpp +++ b/plugins/autotest/testtreeitem.cpp @@ -133,6 +133,10 @@ bool TestTreeItem::modifyContent(const TestTreeItem *modified) m_mainFile = modified->m_mainFile; hasBeenModified = true; } + if (m_type != modified->m_type) { + m_type = modified->m_type; + hasBeenModified = true; + } return hasBeenModified; } |