Commit c8395e7a 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.

(cherry picked from commit 99c11bbd)
parent 6315e05e
......@@ -102,7 +102,9 @@ QUrl CJobRunner::encode(const QString &family, quint32 style, bool system)
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"));
return url;
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