Commit 4ef64b8d authored by dt's avatar dt

Fix No Buils Steps label hiding/showing, remove button en/disable

parent 756a6785
......@@ -129,6 +129,7 @@ void BuildStepsPage::init(const QString &buildConfiguration)
}
m_noStepsLabel->setVisible(steps.isEmpty());
m_removeButton->setEnabled(!steps.isEmpty());
// make sure widget is updated
foreach(BuildStepsWidgetStruct s, m_buildSteps) {
......@@ -322,4 +323,6 @@ void BuildStepsPage::updateBuildStepButtonsState()
s.upButton->setEnabled((i>0) && !(steps.at(i)->immutable() && steps.at(i - 1)));
s.downButton->setEnabled((i + 1< steps.count()) && !(steps.at(i)->immutable() && steps.at(i + 1)->immutable()));
}
m_noStepsLabel->setVisible(steps.isEmpty());
m_removeButton->setEnabled(!steps.isEmpty());
}
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