Qt: Fix build on Qt 5.9 - 5.14

This commit is contained in:
Vicki Pfau 2022-10-29 02:02:30 -07:00
parent 56c9065f70
commit 2a5417e3ce
1 changed files with 4 additions and 0 deletions

View File

@ -43,7 +43,11 @@ void ForwarderController::downloadManifest() {
connect(reply, &QNetworkReply::finished, this, [this, reply]() {
gotManifest(reply);
});
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
connect(reply, &QNetworkReply::errorOccurred, this, [this, reply]() {
#else
connect(reply, qOverload<>(&QNetworkReply::error), this, [this, reply]() {
#endif
emit buildFailed();
});
}