LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kio_help-fallback-to-kde4-docs.patch of Package kio (Project home:bosconovic:branches:KDE:Applications)

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"));