From 4184517f73af2e8a1ad0338618fb04d5cb50e3eb Mon Sep 17 00:00:00 2001 From: Tadej Novak Date: Mon, 30 Oct 2023 19:14:05 +0100 Subject: [PATCH] Fix old Qt version support for usage in linux distributions --- platform/qt/src/mbgl/http_file_source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/qt/src/mbgl/http_file_source.cpp b/platform/qt/src/mbgl/http_file_source.cpp index 43df2470715..d8039fac65d 100644 --- a/platform/qt/src/mbgl/http_file_source.cpp +++ b/platform/qt/src/mbgl/http_file_source.cpp @@ -43,7 +43,7 @@ void HTTPFileSource::Impl::request(HTTPRequest* req) { #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) connect(data.first, &QNetworkReply::errorOccurred, this, &HTTPFileSource::Impl::onReplyFinished); #else - connect(data.first, &QNetworkReply::error, this, &HTTPFileSource::Impl::onReplyFinished); + connect(data.first, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(onReplyFinished())); #endif }