diff options
-rw-r--r-- | src/plugins/projectexplorer/buildenvironmentwidget.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugins/projectexplorer/buildenvironmentwidget.cpp b/src/plugins/projectexplorer/buildenvironmentwidget.cpp index c0a65cfd25..a882e0261a 100644 --- a/src/plugins/projectexplorer/buildenvironmentwidget.cpp +++ b/src/plugins/projectexplorer/buildenvironmentwidget.cpp @@ -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())); |