From 57ba6b09fcfee2bacba2c35ab09126d7694b5905 Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Wed, 2 Dec 2009 17:51:37 +0100 Subject: [PATCH] Fix active configuration combobox --- src/plugins/projectexplorer/projectwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp index 5bec7a3da53..bc8ea308a2f 100644 --- a/src/plugins/projectexplorer/projectwindow.cpp +++ b/src/plugins/projectexplorer/projectwindow.cpp @@ -515,8 +515,8 @@ BuildConfigurationComboBox::BuildConfigurationComboBox(Project *p, QWidget *pare addWidget(m_label); //m_comboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents); - foreach(const BuildConfiguration *buildConfiguration, p->buildConfigurations()) - m_comboBox->addItem(buildConfiguration->displayName(), buildConfiguration); + foreach(BuildConfiguration *buildConfiguration, p->buildConfigurations()) + m_comboBox->addItem(buildConfiguration->displayName(), QVariant::fromValue(buildConfiguration)); if (p->buildConfigurations().count() == 1) { m_label->setText(m_comboBox->itemText(0)); setCurrentWidget(m_label); -- GitLab