Commit 0da939c3 authored by Milian Wolff's avatar Milian Wolff
Browse files

Ensure we do not delete the suite that is re-added.

BUG: 309896
parent cdc0d43b
......@@ -68,6 +68,9 @@ void TestController::addTestSuite(ITestSuite* suite)
{
if (ITestSuite* existingSuite = findTestSuite(suite->project(), suite->name()))
{
if (existingSuite == suite) {
return;
}
removeTestSuite(existingSuite);
delete existingSuite;
}
......
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