diff --git a/src/plugins/qmldesigner/components/annotationeditor/defaultannotations.cpp b/src/plugins/qmldesigner/components/annotationeditor/defaultannotations.cpp index f1fc72ab42d..de3084bb012 100644 --- a/src/plugins/qmldesigner/components/annotationeditor/defaultannotations.cpp +++ b/src/plugins/qmldesigner/components/annotationeditor/defaultannotations.cpp @@ -157,11 +157,13 @@ QVariantMap DefaultAnnotationsModel::asVariantMapFromJson(const QJsonDocument &d map[key] = QVariant::fromValue(val.toDouble()); else if (type == QStringLiteral("color")) map[key] = QVariant::fromValue(QColor(val.toString())); + break; } - default: case QJsonValue::String: map[key] = QString{}; break; + default: + break; } }