From 782b757327ba291cb099f666781c829a50088527 Mon Sep 17 00:00:00 2001 From: janbar Date: Fri, 13 Sep 2024 21:56:25 +0200 Subject: [PATCH] signal error() no longer exist from qt-5.15 The signal has been renamed as errorOccured --- .../src/osmscoutclientqt/FileDownloader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libosmscout-client-qt/src/osmscoutclientqt/FileDownloader.cpp b/libosmscout-client-qt/src/osmscoutclientqt/FileDownloader.cpp index cc737ab36..9079a27f2 100644 --- a/libosmscout-client-qt/src/osmscoutclientqt/FileDownloader.cpp +++ b/libosmscout-client-qt/src/osmscoutclientqt/FileDownloader.cpp @@ -126,8 +126,13 @@ void FileDownloader::startDownload() this, &FileDownloader::onNetworkReadyRead); connect(reply, &QNetworkReply::finished, this, &FileDownloader::onDownloaded); +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) + connect(reply, SIGNAL(errorOccurred(QNetworkReply::NetworkError)), + this, SLOT(onNetworkError(QNetworkReply::NetworkError))); +#else connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(onNetworkError(QNetworkReply::NetworkError))); +#endif timeoutTimer.start(); }