From 4ef64b8dc66e22f31f58ae178405bcd1d1f8f3b0 Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Fri, 20 Nov 2009 14:38:43 +0100
Subject: [PATCH] Fix No Buils Steps label hiding/showing, remove button
 en/disable

---
 src/plugins/projectexplorer/buildstepspage.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/plugins/projectexplorer/buildstepspage.cpp b/src/plugins/projectexplorer/buildstepspage.cpp
index 6c2a3c0f011..1e1e71d3fc3 100644
--- a/src/plugins/projectexplorer/buildstepspage.cpp
+++ b/src/plugins/projectexplorer/buildstepspage.cpp
@@ -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());
 }
-- 
GitLab