diff --git a/src/plugins/qmldesigner/components/annotationeditor/defaultannotations.cpp b/src/plugins/qmldesigner/components/annotationeditor/defaultannotations.cpp index 3623dceeb95..f1fc72ab42d 100644 --- a/src/plugins/qmldesigner/components/annotationeditor/defaultannotations.cpp +++ b/src/plugins/qmldesigner/components/annotationeditor/defaultannotations.cpp @@ -139,9 +139,6 @@ QVariantMap DefaultAnnotationsModel::asVariantMapFromJson(const QJsonDocument &d case QJsonValue::Double: map[key] = double{0.0}; break; - case QJsonValue::String: - map[key] = QString{}; - break; case QJsonValue::Bool: map[key] = false; break; @@ -161,6 +158,10 @@ QVariantMap DefaultAnnotationsModel::asVariantMapFromJson(const QJsonDocument &d else if (type == QStringLiteral("color")) map[key] = QVariant::fromValue(QColor(val.toString())); } + default: + case QJsonValue::String: + map[key] = QString{}; + break; } }