Commit d5fae7b4 authored by Volker Krause's avatar Volker Krause
Browse files

Don't treat strings as sequential containers

Adapts this to a behavior change in Qt 6.
parent 300d6c81
Pipeline #203328 passed with stage
in 2 minutes and 30 seconds
......@@ -471,7 +471,7 @@ void EngineExplorer::showData(QStandardItem *parent, int row, const QString &key
// this case is a bit special, and has to be handled before generic QVariantList
const QList<QVariantMap> list = value.value<QList<QVariantMap>>();
rowCount = showContainerData(parent, current, row, typeName, list);
} else if (value.canConvert<QVariantList>()) {
} else if (value.canConvert<QVariantList>() && value.type() != QVariant::String && value.type() != QVariant::ByteArray) {
const QVariantList list = value.toList();
rowCount = showContainerData(parent, current, row, typeName, list);
} else if (value.canConvert<QVariantMap>()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment