Commit d2bb1435 authored by Tobias Hunger's avatar Tobias Hunger

TargetSettingsPanel: Small cleanup

Change-Id: I39b75d3af36c5770c995f2923ac2e7e49b042850
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent 3be770ee
......@@ -330,10 +330,7 @@ void TargetSettingsPanelWidget::addActionTriggered(QAction *action)
Kit *k = KitManager::find(action->data().value<Id>());
QTC_ASSERT(!m_project->target(k), return);
Target *target = m_project->createTarget(k);
if (!target)
return;
m_project->addTarget(target);
m_project->addTarget(m_project->createTarget(k));
} else {
QTC_ASSERT(data.canConvert<IPotentialKit *>(), return);
IPotentialKit *potentialKit = data.value<IPotentialKit *>();
......@@ -507,7 +504,6 @@ void TargetSettingsPanelWidget::removeTarget(Target *t)
}
m_project->removeTarget(t);
}
void TargetSettingsPanelWidget::showTargetToolTip(const QPoint &globalPos, int targetIndex)
......
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