From bb998a4fc539d9393927bde290aa68c958f368c3 Mon Sep 17 00:00:00 2001 From: Tadej Novak Date: Mon, 30 Oct 2023 23:38:14 +0100 Subject: [PATCH] Fix old Qt version support for usage in linux distributions (#1825) --- 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 43df24707..d8039fac6 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 }