Commit 16872194 authored by dt's avatar dt

Fixes: Fix crash if the project has no build steps.

parent f3578aa7
......@@ -110,8 +110,10 @@ void BuildStepsPage::init(const QString &buildConfiguration)
m_ui->buildSettingsList->setCurrentItem(m_ui->buildSettingsList->invisibleRootItem()->child(0));
// make sure widget is updated
BuildStepConfigWidget *widget = qobject_cast<BuildStepConfigWidget *>(m_ui->buildSettingsWidget->currentWidget());
widget->init(m_configuration);
if (m_ui->buildSettingsWidget->currentWidget()) {
BuildStepConfigWidget *widget = qobject_cast<BuildStepConfigWidget *>(m_ui->buildSettingsWidget->currentWidget());
widget->init(m_configuration);
}
}
/* switch from one tree item / build step to another */
......
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