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

AutoTest: Fix enabled state of Run buttons of results pane

Run buttons of the results pane might stay disabled after a
parse if no items would be swept.

Change-Id: I3df800ec0b42fa7de2b010a911922427da51df3c
Reviewed-by: default avatarDavid Schulz <>
parent bfd84c34
......@@ -561,14 +561,13 @@ void TestTreeModel::markForRemoval(const QString &filePath)
void TestTreeModel::sweep()
bool hasChanged = false;
Type types[] = { AutoTest, QuickTest, GoogleTest };
for (Type type : types) {
TestTreeItem *root = rootItemForType(type);
hasChanged |= sweepChildren(root);
if (hasChanged)
emit testTreeModelChanged();
// even if nothing has changed by the sweeping we might had parse which added or modified items
emit testTreeModelChanged();
if (m_parser->state() == TestCodeParser::Idle && !m_parser->furtherParsingExpected())
emit sweepingDone();
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