From fd4d1c801f2be97a510f0934056ec483ac111f2c Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 29 Jan 2016 12:50:32 +0100 Subject: [PATCH] AutoTest: Fix wrong copying of children Change-Id: I1674ab75f7a019d4ea21ccc7449ba1f7b2c8e26f Reviewed-by: David Schulz --- src/plugins/autotest/testtreeitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/autotest/testtreeitem.cpp b/src/plugins/autotest/testtreeitem.cpp index 76b11a1e0b5..3669edc3a92 100644 --- a/src/plugins/autotest/testtreeitem.cpp +++ b/src/plugins/autotest/testtreeitem.cpp @@ -76,7 +76,7 @@ TestTreeItem::TestTreeItem(const TestTreeItem &other) m_markedForRemoval(other.m_markedForRemoval) { for (int row = 0, count = other.childCount(); row < count; ++row) - appendChild(new TestTreeItem(*childItem(row))); + appendChild(new TestTreeItem(*other.childItem(row))); } static QIcon testTreeIcon(TestTreeItem::Type type)