Fixed implicit UTF8 conversions
This commit is contained in:
@@ -76,7 +76,7 @@ QHash<int, QByteArray> KomplexSearchModel::roleNames() const
|
|||||||
|
|
||||||
void KomplexSearchModel::downloadMedia(QString fileLocation, QString fileUrl)
|
void KomplexSearchModel::downloadMedia(QString fileLocation, QString fileUrl)
|
||||||
{
|
{
|
||||||
QUrl remoteUrl(QStringLiteral("http://api.artifex.services/v1%2").arg(fileUrl));
|
QUrl remoteUrl(QStringLiteral("https://api.artifex.services/v1%2").arg(fileUrl));
|
||||||
QNetworkRequest request(remoteUrl);
|
QNetworkRequest request(remoteUrl);
|
||||||
QNetworkReply *reply = m_manager.get(request);
|
QNetworkReply *reply = m_manager.get(request);
|
||||||
|
|
||||||
@@ -552,7 +552,7 @@ void KomplexSearchModel::install(quint64 index)
|
|||||||
|
|
||||||
if(!process.waitForStarted(3000))
|
if(!process.waitForStarted(3000))
|
||||||
{
|
{
|
||||||
qWarning() << QStringLiteral("Could not start copy process: %1").arg(process.readAllStandardError());
|
qWarning() << QStringLiteral("Could not start copy process: %1").arg(QString::fromUtf8(process.readAllStandardError()));
|
||||||
setStatus(Error, QStringLiteral("Could not start install process"));
|
setStatus(Error, QStringLiteral("Could not start install process"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,14 +10,15 @@
|
|||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QMutex>
|
#include <QMutex>
|
||||||
#include <qdir.h>
|
#include <QDir>
|
||||||
#include <qeventloop.h>
|
#include <QEventLoop>
|
||||||
#include <qjsonarray.h>
|
#include <QJsonDocument>
|
||||||
#include <qjsondocument.h>
|
#include <QJsonParseError>
|
||||||
#include <qjsonobject.h>
|
#include <QJsonObject>
|
||||||
#include <qjsonparseerror.h>
|
#include <QJsonArray>
|
||||||
#include <qnetworkaccessmanager.h>
|
#include <QJsonValue>
|
||||||
#include <qpixmap.h>
|
#include <QNetworkAccessManager>
|
||||||
|
#include <QPixmap>
|
||||||
#include <qqmlintegration.h>
|
#include <qqmlintegration.h>
|
||||||
|
|
||||||
#include "Komplex_global.h"
|
#include "Komplex_global.h"
|
||||||
|
|||||||
@@ -530,7 +530,7 @@ void ShaderToySearchModel::install(quint64 index)
|
|||||||
|
|
||||||
if(!process.waitForStarted(3000))
|
if(!process.waitForStarted(3000))
|
||||||
{
|
{
|
||||||
qWarning() << QStringLiteral("Could not start copy process: %1").arg(process.readAllStandardError());
|
qWarning() << QStringLiteral("Could not start copy process: %1").arg(QString::fromUtf8(process.readAllStandardError()));
|
||||||
setStatus(Error, QStringLiteral("Could not start install process"));
|
setStatus(Error, QStringLiteral("Could not start install process"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user