Commit 52f4a6d8 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Small cleanup

parent e0aa4f86
......@@ -63,20 +63,14 @@ QString BuildEnvironmentWidget::displayName() const
void BuildEnvironmentWidget::init(BuildConfiguration *bc)
{
QTC_ASSERT(bc, return);
Q_ASSERT(bc);
if (m_buildConfiguration) {
disconnect(m_buildConfiguration, SIGNAL(environmentChanged()),
this, SLOT(environmentChanged()));
}
m_buildConfiguration = static_cast<BuildConfiguration *>(bc);
if (!m_buildConfiguration) {
setEnabled(false);
return;
}
setEnabled(true);
m_buildConfiguration = bc;
connect(m_buildConfiguration, SIGNAL(environmentChanged()),
this, SLOT(environmentChanged()));
......
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