Commit 7ed7684b authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Show/hide the no build steps label as appropriate

Reviewed-by: dt
parent c05c1ceb
......@@ -214,6 +214,7 @@ void BuildStepsPage::addBuildStep()
s.detailsWidget->setExpanded(true);
}
m_noStepsLabel->setVisible(false);
updateBuildStepButtonsState();
}
......@@ -242,6 +243,10 @@ void BuildStepsPage::stepRemove(int pos)
m_clean ? m_configuration->removeCleanStep(pos) : m_configuration->removeBuildStep(pos);
updateBuildStepButtonsState();
bool hasSteps(m_clean ? m_configuration->cleanSteps().isEmpty() :
m_configuration->buildSteps().isEmpty());
m_noStepsLabel->setVisible(hasSteps);
}
void BuildStepsPage::setupUi()
......
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