Verified Commit 5269e737 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Deserialize QStringList in agent config model

parent da545cc2
......@@ -103,7 +103,11 @@ QVariant AgentConfigModel::data(const QModelIndex &index, int role) const
if (index.column() == 0) {
return setting.first;
} else if (index.column() == 1) {
return setting.second;
if (setting.second.type() == QVariant::StringList) {
return setting.second.toStringList().join(QStringLiteral(", "));
} else {
return setting.second;
}
} else if (index.column() == 2) {
return QLatin1String(setting.second.typeName());
}
......
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