Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / desktops / plasma-5 / libksysguard / 0001-qdiriterator-follow-symlinks.patch
blobec4a34037dcba1156c2bac063065d9606b6e4fc7
1 From 46164a50de4102d02ae9d1d480acdd4b12303db8 Mon Sep 17 00:00:00 2001
2 From: Thomas Tuegel <ttuegel@gmail.com>
3 Date: Wed, 14 Oct 2015 07:07:22 -0500
4 Subject: [PATCH] qdiriterator follow symlinks
6 ---
7 processui/scripting.cpp | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/processui/scripting.cpp b/processui/scripting.cpp
11 index efed8ff..841761a 100644
12 --- a/processui/scripting.cpp
13 +++ b/processui/scripting.cpp
14 @@ -293,7 +293,7 @@ void Scripting::loadContextMenu()
15 const QStringList dirs =
16 QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("ksysguard/scripts/"), QStandardPaths::LocateDirectory);
17 for (const QString &dir : dirs) {
18 - QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories);
19 + QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
20 while (it.hasNext()) {
21 scripts.append(it.next());
23 --
24 2.5.2