Commit 4cb98b4f authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

Fix wrong QVaviant cast when Workflow is restaured from settings XML file

CCBUGS: 313938
parent b01f1d2d
......@@ -432,7 +432,13 @@ bool WorkflowManager::load(QStringList& failed)
{
QString pname = e3.attribute(QString::fromLatin1("name"));
QString type = e3.attribute(QString::fromLatin1("type"));
set.settings.insert(pname, QVariant(val3).convert(QVariant::nameToType(type.toAscii())));
QVariant var(val3);
var.convert(QVariant::nameToType(type.toAscii()));
/*
kDebug() << "name=" << pname << " :: " << "type=" << type << " :: " << "value=" << val3
<< " :: " << "QVariant=" << var;
*/
set.settings.insert(pname, var);
}
}
......
Markdown is supported
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