From 8f51d76c2378b6b7241b33a155a215376b55f64c Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Thu, 25 Mar 2010 17:27:59 +0100
Subject: [PATCH] Fix en/disabling of add/remove target on projects page

Reviewed-By: hunger
---
 src/plugins/projectexplorer/targetsettingspanel.cpp | 7 ++++---
 src/plugins/projectexplorer/targetsettingspanel.h   | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp
index e9889968467..e18ccb5e5f7 100644
--- a/src/plugins/projectexplorer/targetsettingspanel.cpp
+++ b/src/plugins/projectexplorer/targetsettingspanel.cpp
@@ -67,8 +67,9 @@ TargetSettingsPanelWidget::TargetSettingsPanelWidget(Project *project) :
 
     connect(m_project, SIGNAL(addedTarget(ProjectExplorer::Target*)),
             this, SLOT(targetAdded(ProjectExplorer::Target*)));
-    connect(m_project, SIGNAL(aboutToRemoveTarget(ProjectExplorer::Target*)),
-            this, SLOT(aboutToRemoveTarget(ProjectExplorer::Target*)));
+    connect(m_project, SIGNAL(removedTarget(ProjectExplorer::Target*)),
+            this, SLOT(removedTarget(ProjectExplorer::Target*)));
+
     connect(m_project, SIGNAL(activeTargetChanged(ProjectExplorer::Target*)),
             this, SLOT(activeTargetChanged(ProjectExplorer::Target*)));
     connect(m_project, SIGNAL(supportedTargetIdsChanged()),
@@ -217,7 +218,7 @@ void TargetSettingsPanelWidget::targetAdded(ProjectExplorer::Target *target)
     updateTargetAddAndRemoveButtons();
 }
 
-void TargetSettingsPanelWidget::aboutToRemoveTarget(ProjectExplorer::Target *target)
+void TargetSettingsPanelWidget::removedTarget(ProjectExplorer::Target *target)
 {
     Q_ASSERT(m_project == target->project());
     Q_ASSERT(m_selector);
diff --git a/src/plugins/projectexplorer/targetsettingspanel.h b/src/plugins/projectexplorer/targetsettingspanel.h
index 4b26c768fb9..fa510c69a6e 100644
--- a/src/plugins/projectexplorer/targetsettingspanel.h
+++ b/src/plugins/projectexplorer/targetsettingspanel.h
@@ -58,7 +58,7 @@ private slots:
     void addTarget();
     void removeTarget();
     void targetAdded(ProjectExplorer::Target *target);
-    void aboutToRemoveTarget(ProjectExplorer::Target *target);
+    void removedTarget(ProjectExplorer::Target *target);
     void activeTargetChanged(ProjectExplorer::Target *target);
     void updateTargetAddAndRemoveButtons();
 
-- 
GitLab