diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp index 41973168a48..b901071c222 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp @@ -673,7 +673,7 @@ void JsonFieldPage::CheckBoxField::initializeData(MacroExpander *expander) // -------------------------------------------------------------------- JsonFieldPage::ComboBoxField::ComboBoxField() : - m_index(-1), m_disabledIndex(-1), m_savedIndex(-1), m_currentIndex(-1) + m_index(-1), m_disabledIndex(-1), m_savedIndex(-1) { } QPair parseComboBoxItem(const QVariant &item, QString *errorMessage) @@ -792,10 +792,7 @@ void JsonFieldPage::ComboBoxField::initializeData(MacroExpander *expander) w->setItems(tmpItems, tmpData); w->setInsertPolicy(QComboBox::NoInsert); - if (m_currentIndex >= 0) - w->setCurrentIndex(m_currentIndex); - else - w->setCurrentIndex(m_index); + w->setCurrentIndex(m_index); } // -------------------------------------------------------------------- @@ -839,7 +836,6 @@ bool JsonFieldPage::setup(const QVariant &data) f->createWidget(this); m_fields.append(f); } - return true; } diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.h b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.h index 3237e152531..92090c62e02 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.h +++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.h @@ -239,7 +239,6 @@ public: int m_disabledIndex; mutable int m_savedIndex; - int m_currentIndex; }; JsonFieldPage(Utils::MacroExpander *expander, QWidget *parent = 0);