Fix wrong state of Run/Run All buttons

Introduced with fa28f1cb30

Change-Id: I80f5e08bcf2b630fcf7a4a77d47db6e7b7d26e50
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-05-29 11:30:23 +02:00
parent 36824fe498
commit 21afdf227a

View File

@@ -190,6 +190,8 @@ void TestResultsPane::visibilityChanged(bool visible)
return;
connect(TestTreeModel::instance(), &TestTreeModel::testTreeModelChanged,
this, &TestResultsPane::onTestTreeModelChanged);
// make sure run/run all are in correct state
onTestTreeModelChanged();
m_wasVisibleBefore = true;
TestTreeModel::instance()->enableParsing();
} else {