diff --git a/src/ui/designer/QGCComboBox.cc b/src/ui/designer/QGCComboBox.cc index 1b8345b..a8804e3 100644 --- a/src/ui/designer/QGCComboBox.cc +++ b/src/ui/designer/QGCComboBox.cc @@ -431,7 +431,7 @@ void QGCComboBox::comboBoxIndexChanged(QString val) { parameterName = comboBoxTextToParamMap.value(ui->editOptionComboBox->currentText()); } - switch (parameterValue.type()) + switch (static_cast(parameterValue.type())) { case QVariant::Char: parameterValue = QVariant(QChar((unsigned char)comboBoxTextToValMap[val]));