1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 17:14:58 +01:00

QNetworkRequest::Http2AllowedAttribute require Qt 5.15

This commit is contained in:
Jonas Kvinge 2020-12-20 07:42:14 +01:00
parent 32ae3cd567
commit 30cb0b1cae
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ bool MusixmatchCoverProvider::StartSearch(const QString &artist, const QString &
#else #else
req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true); req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
#endif #endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
req.setAttribute(QNetworkRequest::Http2AllowedAttribute, false); req.setAttribute(QNetworkRequest::Http2AllowedAttribute, false);
#endif #endif
QNetworkReply *reply = network_->get(req); QNetworkReply *reply = network_->get(req);

View File

@ -80,7 +80,7 @@ bool MusixmatchLyricsProvider::StartSearch(const QString &artist, const QString
#else #else
req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true); req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
#endif #endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
req.setAttribute(QNetworkRequest::Http2AllowedAttribute, false); req.setAttribute(QNetworkRequest::Http2AllowedAttribute, false);
#endif #endif
QNetworkReply *reply = network_->get(req); QNetworkReply *reply = network_->get(req);