From 19e3800c6b06b43916de63f8384e457214faddd3 Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Fri, 20 Mar 2009 11:52:47 +0100 Subject: [PATCH] Fixes: Qt Version dialog not saving the msvc version. --- src/plugins/qt4projectmanager/qtversionmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qt4projectmanager/qtversionmanager.cpp b/src/plugins/qt4projectmanager/qtversionmanager.cpp index c6024a869c3..0c968b8485a 100644 --- a/src/plugins/qt4projectmanager/qtversionmanager.cpp +++ b/src/plugins/qt4projectmanager/qtversionmanager.cpp @@ -204,7 +204,7 @@ void QtVersionManager::writeVersionsIntoSettings() { QSettings *s = Core::ICore::instance()->settings(); s->setValue(defaultQtVersionKey, m_defaultVersion); - s->beginWriteArray("QtVersions"); + s->beginWriteArray(QtVersionsSectionName); for (int i = 0; i < m_versions.size(); ++i) { s->setArrayIndex(i); s->setValue("Name", m_versions.at(i)->name()); @@ -521,8 +521,8 @@ void QtDirWidget::showEnvironmentPage(QTreeWidgetItem *item) m_ui.msvcLabel->setText(""); } else { m_ui.msvcComboBox->setVisible(true); - m_ui.msvcComboBox->clear(); bool block = m_ui.msvcComboBox->blockSignals(true); + m_ui.msvcComboBox->clear(); foreach(const QString &msvcenv, msvcEnvironments) { m_ui.msvcComboBox->addItem(msvcenv); if (msvcenv == m_versions.at(index)->msvcVersion()) { -- GitLab