Commit 8f51d76c authored by dt's avatar dt
Browse files

Fix en/disabling of add/remove target on projects page

Reviewed-By: hunger
parent 70dc7599
......@@ -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);
......
......@@ -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();
......
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