Commit 938ca5ca authored by Christian Stenger's avatar Christian Stenger

AutoTest: Fix enabled state of run buttons

Disable running tests also when currently executing a test run.

Change-Id: Ic9538678d678650c3c79da5699f96e812d7c5415
Reviewed-by: Oliver Wolff's avatarOliver Wolff <oliver.wolff@qt.io>
parent a8313913
......@@ -517,7 +517,7 @@ void TestResultsPane::updateRunActions()
{
QString whyNot;
TestTreeModel *model = TestTreeModel::instance();
const bool enable = !model->parser()->isParsing() && model->hasTests()
const bool enable = !m_testRunning && !model->parser()->isParsing() && model->hasTests()
&& ProjectExplorer::ProjectExplorerPlugin::canRunStartupProject(
ProjectExplorer::Constants::NORMAL_RUN_MODE, &whyNot);
m_runAll->setEnabled(enable);
......
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