forked from qt-creator/qt-creator
Revert "VCSBaseEditorParameterWidget::mapSetting cope with 0 pointer"
This reverts commit b5ce5e9086
because the check already happened two lines before.
Change-Id: Ic230fe767c22dc4747a4ceecedd68fc09c99267b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -194,7 +194,7 @@ void VcsBaseEditorConfig::mapSetting(QComboBox *comboBox, QString *setting)
|
||||
d->m_settingMapping.insert(comboBox, Internal::SettingMappingData(setting));
|
||||
if (setting) {
|
||||
comboBox->blockSignals(true);
|
||||
const int itemIndex = setting ? comboBox->findData(*setting) : -1;
|
||||
const int itemIndex = comboBox->findData(*setting);
|
||||
if (itemIndex != -1)
|
||||
comboBox->setCurrentIndex(itemIndex);
|
||||
comboBox->blockSignals(false);
|
||||
|
||||
Reference in New Issue
Block a user