Commit 99c11bbd authored by David Edmundson's avatar David Edmundson
Browse files

Fix font installation

Regression caused by 567d49f5 in a port
to QUrl::setQuery(QUrlQuery) from QUrl::addQueryItem

The bug is that FC::encode may return a URL with a query already set. We
want to append not replace.
parent 2c2cd9ba
...@@ -102,7 +102,9 @@ QUrl CJobRunner::encode(const QString &family, quint32 style, bool system) ...@@ -102,7 +102,9 @@ QUrl CJobRunner::encode(const QString &family, quint32 style, bool system)
{ {
QUrl url(FC::encode(family, style)); QUrl url(FC::encode(family, style));
url.setQuery(QUrlQuery({{QStringLiteral("sys"), system ? QStringLiteral("true") : QStringLiteral("false")}})); QUrlQuery query(url);
query.addQueryItem(QStringLiteral("sys"), system ? QStringLiteral("true") : QStringLiteral("false"));
url.setQuery(query);
return url; return url;
} }
......
Supports Markdown
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