Skip to content
Snippets Groups Projects
Commit 4ef64b8d authored by dt's avatar dt
Browse files

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

parent 756a6785
No related branches found
No related tags found
No related merge requests found
...@@ -129,6 +129,7 @@ void BuildStepsPage::init(const QString &buildConfiguration) ...@@ -129,6 +129,7 @@ void BuildStepsPage::init(const QString &buildConfiguration)
} }
m_noStepsLabel->setVisible(steps.isEmpty()); m_noStepsLabel->setVisible(steps.isEmpty());
m_removeButton->setEnabled(!steps.isEmpty());
// make sure widget is updated // make sure widget is updated
foreach(BuildStepsWidgetStruct s, m_buildSteps) { foreach(BuildStepsWidgetStruct s, m_buildSteps) {
...@@ -322,4 +323,6 @@ void BuildStepsPage::updateBuildStepButtonsState() ...@@ -322,4 +323,6 @@ void BuildStepsPage::updateBuildStepButtonsState()
s.upButton->setEnabled((i>0) && !(steps.at(i)->immutable() && steps.at(i - 1))); 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())); 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());
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment