forked from qt-creator/qt-creator
AutoTest: Fix enabled state of run buttons
Disable running tests also when currently executing a test run. Change-Id: Ic9538678d678650c3c79da5699f96e812d7c5415 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user