Commit fd4d1c80 authored by Christian Stenger's avatar Christian Stenger
Browse files

AutoTest: Fix wrong copying of children



Change-Id: I1674ab75f7a019d4ea21ccc7449ba1f7b2c8e26f
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 7a331b8c
......@@ -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)
......
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