[Gui]Fix Py SyntaxError on " in PropertyStringList

This commit is contained in:
wandererfan
2019-09-18 07:49:22 -04:00
committed by WandererFan
parent c8a0c2c815
commit dbf0644b60

View File

@@ -2308,6 +2308,7 @@ void PropertyStringListItem::setValue(const QVariant& value)
text.replace(QString::fromUtf8("'"),QString::fromUtf8("\\'"));
std::string pystr = Base::Tools::escapedUnicodeFromUtf8(text.toUtf8());
pystr = Base::Interpreter().strToPython(pystr.c_str());
str << "u\"" << pystr.c_str() << "\", ";
}
str << "]";