From d886285ff0f9931b39a6069bc5260cf2148757eb Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 31 Jan 2019 15:45:28 +0100 Subject: [PATCH] AutoTest: Fix handling of empty tests If an item of type MessageCaseStart is going to be updated it might end up in still getting no icon if none of its children is enforcing a change. Change-Id: I7ec6d114c547189a02744f064d4c04cdf31a03d7 Reviewed-by: David Schulz --- src/plugins/autotest/testresultmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/autotest/testresultmodel.cpp b/src/plugins/autotest/testresultmodel.cpp index a694ba8c228..cbd9d5db9af 100644 --- a/src/plugins/autotest/testresultmodel.cpp +++ b/src/plugins/autotest/testresultmodel.cpp @@ -141,7 +141,7 @@ void TestResultItem::updateResult(bool &changed, Result::Type addedChildType) ? Result::MessageTestCaseSuccess : old; break; default: - return; + break; } changed = old != newResult; if (changed)