libkscreen: upgrade patch
Signed-off-by: Yaroslav Bolyukin <iam@lach.pw>
This commit is contained in:
parent
ef8e9e0163
commit
b236ccbfad
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue