Commit 81e0092a authored by Christian Stenger's avatar Christian Stenger

AutoTest: Do not keep partially checked when switching projects

Root items that have a partially checked state would keep the state when
switching projects until manually modified or if new items would be
added on a next parse. Reset them to checked state instead.

Change-Id: Id543edd7694abc6fcec3b8d028dce2ee82213517
Reviewed-by: David Schulz's avatarDavid Schulz <>
parent 56391444
......@@ -278,8 +278,12 @@ void TestTreeModel::handleParseResult(const TestParseResult *result, TestTreeIte
void TestTreeModel::removeAllTestItems()
for (Utils::TreeItem *item : *rootItem())
for (Utils::TreeItem *item : *rootItem()) {
TestTreeItem *testTreeItem = static_cast<TestTreeItem *>(item);
if (testTreeItem->checked() == Qt::PartiallyChecked)
emit testTreeModelChanged();
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