Commit dfcf8705 authored by dt's avatar dt

Don't crash on adding a runconfiguration

The combobox now emits a currentIndexChanged(-1) signal if we reset the
base model.
Reviewed-by: default avatarcon <qtc-committer@nokia.com>
parent a6d099a1
......@@ -295,6 +295,11 @@ void RunSettingsWidget::initRunConfigurationComboBox()
void RunSettingsWidget::showRunConfigurationWidget(int index)
{
Q_ASSERT(m_project);
if (index == -1) {
delete m_runConfigurationWidget;
m_runConfigurationWidget = 0;
return;
}
QSharedPointer<RunConfiguration> selectedRunConfiguration =
m_runConfigurationsModel->runConfigurations().at(index);
......
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