NetworkQuery: Disconnect from all QNetworkReply signals on destruction

Task-number: QTCREATORBUG-32746
Change-Id: Ib4870522192962a1f5d9af80e31898bab7f87d17
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2025-04-08 09:38:05 +02:00
parent ae344b9f9b
commit 89534d3186

View File

@@ -51,7 +51,7 @@ void NetworkQuery::start()
NetworkQuery::~NetworkQuery()
{
if (m_reply) {
disconnect(m_reply.get(), &QNetworkReply::finished, this, nullptr);
disconnect(m_reply.get(), nullptr, this, nullptr);
m_reply->abort();
}
}