Only print real bools as True/False, not anything that can convert

This commit is contained in:
baldurk
2018-02-02 13:19:48 +00:00
parent d6b6fcf2c1
commit ec68f9ec0e
@@ -387,7 +387,7 @@ void PipelineStateViewer::exportHTMLTable(QXmlStreamWriter &xml, const QStringLi
{
xml.writeStartElement(lit("td"));
if(el.canConvert<bool>())
if(el.type() == QVariant::Bool)
xml.writeCharacters(el.toBool() ? tr("True") : tr("False"));
else
xml.writeCharacters(el.toString());