File 0005-Fix-build.patch of Package plasma5-desktop.17405

From d83fee40df7de5657662f5aff963d3f9909086e6 Mon Sep 17 00:00:00 2001
From: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date: Wed, 9 Feb 2022 19:17:16 +0000
Subject: [PATCH 5/5] Fix build

(cherry picked from commit 6e8626f2d65a03af3cd12fb5390040c56ca3258d)
---
 attica-kde/kdeplugin/kdeplatformdependent.cpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/attica-kde/kdeplugin/kdeplatformdependent.cpp b/attica-kde/kdeplugin/kdeplatformdependent.cpp
index 7f71d4627..918be0f8d 100644
--- a/attica-kde/kdeplugin/kdeplatformdependent.cpp
+++ b/attica-kde/kdeplugin/kdeplatformdependent.cpp
@@ -98,12 +98,10 @@ QNetworkRequest KdePlatformDependent::removeAuthFromRequest(const QNetworkReques
     notConstReq.setAttribute(QNetworkRequest::User, noauth);
 
     // Add cache preference in a granular fashion (we will almost certainly want more of these, but...)
-    static const QStringList preferCacheEndpoints{
-        QLatin1String{"/content/categories"}
-    }
+    static const QStringList preferCacheEndpoints{QLatin1String{"/content/categories"}};
     for (const QString &endpoint : preferCacheEndpoints) {
-        if (notConstReq.url().endsWith(endpoint)) {
-            QNetworkCacheMetaData cacheMeta{m_accessManager->cache.metaData(notConstReq.url())};
+        if (notConstReq.url().toString().endsWith(endpoint)) {
+            QNetworkCacheMetaData cacheMeta{m_accessManager->cache()->metaData(notConstReq.url())};
             if (cacheMeta.isValid()) {
                 // If the expiration date is valid, but longer than 24 hours, don't trust that things
                 // haven't changed and check first, otherwise just use the cached version to relieve
-- 
2.33.1

openSUSE Build Service is sponsored by