From 21afdf227aeec4a5d4cfe8d32588cce25d0e4cf5 Mon Sep 17 00:00:00 2001 From: Christian Stenger <christian.stenger@theqtcompany.com> Date: Fri, 29 May 2015 11:30:23 +0200 Subject: [PATCH] Fix wrong state of Run/Run All buttons Introduced with fa28f1cb303d79ff3feb1416ef0637785dade8fc Change-Id: I80f5e08bcf2b630fcf7a4a77d47db6e7b7d26e50 Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com> --- plugins/autotest/testresultspane.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/autotest/testresultspane.cpp b/plugins/autotest/testresultspane.cpp index c2a2b5851f6..3d9e874bdf5 100644 --- a/plugins/autotest/testresultspane.cpp +++ b/plugins/autotest/testresultspane.cpp @@ -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 { -- GitLab