forked from qt-creator/qt-creator
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:
@@ -190,6 +190,8 @@ void TestResultsPane::visibilityChanged(bool visible)
|
|||||||
return;
|
return;
|
||||||
connect(TestTreeModel::instance(), &TestTreeModel::testTreeModelChanged,
|
connect(TestTreeModel::instance(), &TestTreeModel::testTreeModelChanged,
|
||||||
this, &TestResultsPane::onTestTreeModelChanged);
|
this, &TestResultsPane::onTestTreeModelChanged);
|
||||||
|
// make sure run/run all are in correct state
|
||||||
|
onTestTreeModelChanged();
|
||||||
m_wasVisibleBefore = true;
|
m_wasVisibleBefore = true;
|
||||||
TestTreeModel::instance()->enableParsing();
|
TestTreeModel::instance()->enableParsing();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user