diff --git a/src/plugins/axivion/dashboard/dashboardclient.cpp b/src/plugins/axivion/dashboard/dashboardclient.cpp index 4956f106360..d6a091d7fc2 100644 --- a/src/plugins/axivion/dashboard/dashboardclient.cpp +++ b/src/plugins/axivion/dashboard/dashboardclient.cpp @@ -81,6 +81,7 @@ QFuture DashboardClient::fetchProjectInfo(const request.setRawHeader(QByteArrayLiteral(u8"X-Axivion-User-Agent"), ua); std::shared_ptr reply{ this->m_networkAccessManager.get(request), deleteLater }; return QtFuture::connect(reply.get(), &QNetworkReply::finished) + .onCanceled(reply.get(), [reply] { reply->abort(); }) .then(RawBodyReader(reply)) .then(QtFuture::Launch::Async, &RawBodyParser); }