build fix

This commit is contained in:
Martin Rotter 2022-12-07 09:37:25 +01:00
parent 2297d151fc
commit f3168f880c
4 changed files with 5 additions and 5 deletions

View File

@ -149,7 +149,7 @@ QString NetworkFactory::sanitizeUrl(const QString& url) {
QNetworkReply::NetworkError NetworkFactory::downloadIcon(const QList<QPair<QString, bool>>& urls,
int timeout,
QIcon& output,
QPixmap& output,
const QList<QPair<QByteArray, QByteArray>>& additional_headers,
const QNetworkProxy& custom_proxy) {
QNetworkReply::NetworkError network_result = QNetworkReply::NetworkError::UnknownNetworkError;

View File

@ -43,11 +43,11 @@ class NetworkFactory {
static QString networkErrorText(QNetworkReply::NetworkError error_code);
static QString sanitizeUrl(const QString& url);
// Performs SYNCHRONOUS download if favicon for the site,
// Performs SYNCHRONOUS favicon download for the site,
// given URL belongs to.
static QNetworkReply::NetworkError downloadIcon(const QList<QPair<QString, bool>>& urls,
int timeout,
QIcon& output,
QPixmap& output,
const QList<QPair<QByteArray, QByteArray>>& additional_headers,
const QNetworkProxy& custom_proxy =
QNetworkProxy::ProxyType::DefaultProxy);

View File

@ -145,7 +145,7 @@ void FormCategoryDetails::onLoadIconFromFile() {
auto supported_formats = QImageReader::supportedImageFormats();
auto prefixed_formats = boolinq::from(supported_formats)
.select([](const QByteArray& frmt) {
return QSL("*.%1").arg(frmt);
return QSL("*.%1").arg(QString::fromLocal8Bit(frmt));
})
.toStdList();

View File

@ -281,7 +281,7 @@ void StandardFeedDetails::onLoadIconFromFile() {
auto supported_formats = QImageReader::supportedImageFormats();
auto prefixed_formats = boolinq::from(supported_formats)
.select([](const QByteArray& frmt) {
return QSL("*.%1").arg(frmt);
return QSL("*.%1").arg(QString::fromLocal8Bit(frmt));
})
.toStdList();