Commit 8d314115 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile against 5.15

parent 05209d8f
......@@ -69,11 +69,7 @@ QJsonArray WikiData::query(const char *sparqlQuery, const char *cacheFileName)
auto reply = nam.get(QNetworkRequest(url));
QObject::connect(reply, &QNetworkReply::finished, QCoreApplication::instance(), &QCoreApplication::quit);
QCoreApplication::exec();
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
if (reply->error() != QNetworkReply::NoError) {
#else
if (reply->networkError() != QNetworkReply::NoError) {
#endif
qWarning() << reply->errorString();
return {};
}
......
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