kio/kio_help-fallback-to-kde4-docs.patch

16 lines
854 B
Diff
Raw Normal View History

Index: kio-5.36.0git.20170624T013155~b715b585/src/ioslaves/help/kio_help.cpp
===================================================================
--- kio-5.36.0git.20170624T013155~b715b585.orig/src/ioslaves/help/kio_help.cpp
+++ kio-5.36.0git.20170624T013155~b715b585/src/ioslaves/help/kio_help.cpp
@@ -51,7 +51,9 @@ QString HelpProtocol::langLookup(const Q
QStringList search;
// assemble the local search paths
- const QStringList localDoc = KDocTools::documentationDirs();
+ QStringList localDoc = KDocTools::documentationDirs();
+ QStringList fallbacklocalDoc = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("doc/kde/HTML"), QStandardPaths::LocateDirectory);
+ localDoc.append(fallbacklocalDoc);
QStringList langs = KLocalizedString::languages();
langs.append(QStringLiteral("en"));