From b236ccbfad176ff02644e8f621310745e6964474 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Fri, 22 Jan 2021 22:53:13 +0300 Subject: [PATCH] libkscreen: upgrade patch Signed-off-by: Yaroslav Bolyukin --- .../plasma-5/libkscreen/libkscreen-backends-path.patch | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/desktops/plasma-5/libkscreen/libkscreen-backends-path.patch b/pkgs/desktops/plasma-5/libkscreen/libkscreen-backends-path.patch index 48be0d037df..3d19f2d89fa 100644 --- a/pkgs/desktops/plasma-5/libkscreen/libkscreen-backends-path.patch +++ b/pkgs/desktops/plasma-5/libkscreen/libkscreen-backends-path.patch @@ -2,7 +2,7 @@ Index: libkscreen-5.9.4/src/backendmanager.cpp =================================================================== --- libkscreen-5.9.4.orig/src/backendmanager.cpp +++ libkscreen-5.9.4/src/backendmanager.cpp -@@ -178,17 +178,11 @@ QFileInfo BackendManager::preferredBacke +@@ -172,14 +172,11 @@ QFileInfo BackendManager::preferredBackend(const QString &backend) QFileInfoList BackendManager::listBackends() { // Compile a list of installed backends first @@ -10,10 +10,7 @@ Index: libkscreen-5.9.4/src/backendmanager.cpp - const QStringList paths = QCoreApplication::libraryPaths(); - QFileInfoList finfos; - for (const QString &path : paths) { -- const QDir dir(path + QLatin1String("/kf5/kscreen/"), -- backendFilter, -- QDir::SortFlags(QDir::QDir::Name), -- QDir::NoDotAndDotDot | QDir::Files); +- const QDir dir(path + QLatin1String("/kf5/kscreen/"), backendFilter, QDir::SortFlags(QDir::QDir::Name), QDir::NoDotAndDotDot | QDir::Files); - finfos.append(dir.entryInfoList()); - } - return finfos; @@ -24,4 +21,4 @@ Index: libkscreen-5.9.4/src/backendmanager.cpp + return dir.entryInfoList(); } - KScreen::AbstractBackend *BackendManager::loadBackendPlugin(QPluginLoader *loader, const QString &name, + KScreen::AbstractBackend *BackendManager::loadBackendPlugin(QPluginLoader *loader, const QString &name, const QVariantMap &arguments)