Commit 87e642a4 authored by dt's avatar dt
Browse files

Fix bugs introduced by refactoring

parent cff2c1df
......@@ -254,8 +254,8 @@ void BuildSettingsWidget::updateBuildSettings()
m_subWidgets->addWidget(subConfigWidget->displayName(), subConfigWidget);
// Add tree items
foreach (const BuildConfiguration *bc, m_project->buildConfigurations()) {
m_buildConfigurationComboBox->addItem(bc->displayName(), bc);
foreach (BuildConfiguration *bc, m_project->buildConfigurations()) {
m_buildConfigurationComboBox->addItem(bc->displayName(), QVariant::fromValue(bc));
if (bc == m_buildConfiguration)
m_buildConfigurationComboBox->setCurrentIndex(m_buildConfigurationComboBox->count() - 1);
}
......
......@@ -271,6 +271,7 @@ bool Project::restoreSettingsImpl(PersistentSettingsReader &reader)
}
}
}
addBuildConfiguration(bc);
}
// Set Active Configuration
......
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