Skip to content

Commit

Permalink
Merge pull request #1601 from janbar/fix_qnetwork_reply_signal
Browse files Browse the repository at this point in the history
signal error() no longer exist from qt-5.15
  • Loading branch information
Framstag authored Sep 14, 2024
2 parents 286e56f + 782b757 commit 6de63c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libosmscout-client-qt/src/osmscoutclientqt/FileDownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 6de63c0

Please sign in to comment.