diff --git a/Network/FileDownload.cpp b/Network/FileDownload.cpp index 4e88110dd..6283efd89 100644 --- a/Network/FileDownload.cpp +++ b/Network/FileDownload.cpp @@ -181,7 +181,7 @@ void FileDownload::download(QUrl qurl) #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) QObject::connect(reply_, &QNetworkReply::errorOccurred,this, &FileDownload::errorOccurred, Qt::UniqueConnection); #else -// QObject::connect(reply_, &QNetworkReply::error, this, &FileDownload::errorOccurred, Qt::UniqueConnection); + QObject::connect(reply_, QOverload::of(&QNetworkReply::error), this, &FileDownload::errorOccurred, Qt::UniqueConnection); #endif QObject::connect(reply_, &QNetworkReply::readyRead, this, &FileDownload::store, Qt::UniqueConnection);