From 9159799a2aaa4622471f6bf7eabb884989d4a9b3 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 16 Feb 2015 12:19:26 +0100 Subject: Fix modifyContent() to take type in account as well Change-Id: I1a4aeb10243afc5514330fceb3f502d9ea4432d1 Reviewed-by: Andre Poenitz --- plugins/autotest/testtreeitem.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/autotest/testtreeitem.cpp') 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; } -- cgit v1.2.1