Commit bd31e1e8 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

BuildSettings: Do not crash when there no widget is provided



Change-Id: Iceac2082e1939844da68bf4474dac632c0536ece
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent ffba28d2
......@@ -240,7 +240,8 @@ void BuildSettingsWidget::updateBuildSettings()
// Add pages
NamedWidget *generalConfigWidget = m_buildConfiguration->createConfigWidget();
addSubWidget(generalConfigWidget);
if (generalConfigWidget)
addSubWidget(generalConfigWidget);
addSubWidget(new BuildStepsPage(m_buildConfiguration, Core::Id(Constants::BUILDSTEPS_BUILD)));
addSubWidget(new BuildStepsPage(m_buildConfiguration, Core::Id(Constants::BUILDSTEPS_CLEAN)));
......
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