summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectwindow.cpp
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2009-12-02 17:51:37 +0100
committerdt <qtc-committer@nokia.com>2009-12-02 17:51:57 +0100
commit57ba6b09fcfee2bacba2c35ab09126d7694b5905 (patch)
treeb648a1ff9dc5f8cb1ad75fef9e95af217b81d13e /src/plugins/projectexplorer/projectwindow.cpp
parentec2fa92ee096db72bc48803676ba21e873d4d475 (diff)
downloadqt-creator-57ba6b09fcfee2bacba2c35ab09126d7694b5905.tar.gz
Fix active configuration combobox
Diffstat (limited to 'src/plugins/projectexplorer/projectwindow.cpp')
-rw-r--r--src/plugins/projectexplorer/projectwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp
index 5bec7a3da5..bc8ea308a2 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);