Commit bf9524e6 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix possible issue with char* to QVariant conversion

parent ed387d0e
......@@ -564,7 +564,7 @@ QVariant AssetParameterModel::data(const QModelIndex &index, int role) const
case ListValuesRole:
return element.attribute(QStringLiteral("paramlist")).split(QLatin1Char(';'));
case InstalledValuesRole:
return m_asset->get("kdenlive:paramlist");
return QString(m_asset->get("kdenlive:paramlist"));
case ListNamesRole: {
QDomElement namesElem = element.firstChildElement(QStringLiteral("paramlistdisplay"));
return i18n(namesElem.text().toUtf8().data()).split(QLatin1Char(','));
......
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