mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
From 05c0eb5d803ac52c0dd97a98f6d2821650c3c14c Mon Sep 17 00:00:00 2001
|
|
From: Thomas Tuegel <ttuegel@mailbox.org>
|
|
Date: Sun, 28 Mar 2021 06:09:47 -0500
|
|
Subject: [PATCH] QDirIterator follow symlinks
|
|
|
|
---
|
|
src/khelpclient.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/khelpclient.cpp b/src/khelpclient.cpp
|
|
index a053cd7..787d375 100644
|
|
--- a/src/khelpclient.cpp
|
|
+++ b/src/khelpclient.cpp
|
|
@@ -34,7 +34,7 @@ void KHelpClient::invokeHelp(const QString &anchor, const QString &_appname)
|
|
QString docPath;
|
|
const QStringList desktopDirs = QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation);
|
|
for (const QString &dir : desktopDirs) {
|
|
- QDirIterator it(dir, QStringList() << appname + QLatin1String(".desktop"), QDir::NoFilter, QDirIterator::Subdirectories);
|
|
+ QDirIterator it(dir, QStringList() << appname + QLatin1String(".desktop"), QDir::NoFilter, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
|
|
while (it.hasNext()) {
|
|
const QString desktopPath(it.next());
|
|
KDesktopFile desktopFile(desktopPath);
|
|
--
|
|
2.30.1
|
|
|