Added back qt version check

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-05-14 00:36:35 +03:00
parent e285a85fe8
commit c2ed50627d
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -105,7 +105,9 @@ void NetRequest::executeTask()
header_proxy->writeHeaders(request); header_proxy->writeHeaders(request);
} }
request.setTransferTimeout(QNetworkRequest::DefaultTransferTimeoutConstant); #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
request.setTransferTimeout();
#endif
m_last_progress_time = m_clock.now(); m_last_progress_time = m_clock.now();
m_last_progress_bytes = 0; m_last_progress_bytes = 0;