From 396746acc11ac1457e8020c7f8171fe9588a59da Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sun, 28 Mar 2021 18:47:34 +0200 Subject: [PATCH] [libcalamares] Warnings-- for renamed enum value Remove the before-Qt 5.15 ifdeffery and just keep the current flags for NetworkManager. --- src/libcalamares/network/Manager.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/libcalamares/network/Manager.cpp b/src/libcalamares/network/Manager.cpp index 6cb270ecd..536474b2b 100644 --- a/src/libcalamares/network/Manager.cpp +++ b/src/libcalamares/network/Manager.cpp @@ -29,16 +29,11 @@ namespace Network void RequestOptions::applyToRequest( QNetworkRequest* request ) const { -#if QT_VERSION < QT_VERSION_CHECK( 5, 15, 0 ) - constexpr const auto RedirectPolicyAttribute = QNetworkRequest::FollowRedirectsAttribute; -#else - constexpr const auto RedirectPolicyAttribute = QNetworkRequest::RedirectPolicyAttribute; -#endif if ( m_flags & Flag::FollowRedirect ) { // Follows all redirects except unsafe ones (https to http). - request->setAttribute( RedirectPolicyAttribute, true ); + request->setAttribute( QNetworkRequest::RedirectPolicyAttribute, true ); } if ( m_flags & Flag::FakeUserAgent )