Commit 8c83add9 authored by Laurent Montel's avatar Laurent Montel 😁

Protect "\" for all editors

parent 0daaac9e
......@@ -70,7 +70,7 @@ QString AutoCreateScriptUtil::createList(const QStringList &lst, bool addSemiCol
if (protectSlash) {
str = AutoCreateScriptUtil::protectSlash(str);
}
result += (wasFirst ? QString() : QStringLiteral(",")) + QStringLiteral(" \"%1\"").arg(quoteStr(str));
result += (wasFirst ? QString() : QStringLiteral(",")) + QStringLiteral(" \"%1\"").arg(quoteStr(str, false));
wasFirst = false;
}
result += QLatin1String(" ]");
......
......@@ -37,7 +37,7 @@ QString strValue(QDomNode &node);
QStringList listValue(const QDomElement &element);
QString listValueToStr(const QDomElement &element);
QString fixListValue(QString valueStr);
QString quoteStr(QString str, bool protectSlash = false);
QString quoteStr(QString str, bool protectSlash = true);
void comboboxItemNotFound(const QString &searchItem, const QString &name, QString &error);
QString createFullWhatsThis(const QString &help, const QString &href);
QString protectSlash(QString str);
......
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