Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/help/kio_help.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 47 | { | |||
---|---|---|---|---|---|
93 | return QString(); | 93 | return QString(); | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | QString HelpProtocol::lookupFile(const QString &fname, | 96 | QString HelpProtocol::lookupFile(const QString &fname, | ||
97 | const QString &query, bool &redirect) | 97 | const QString &query, bool &redirect) | ||
98 | { | 98 | { | ||
99 | redirect = false; | 99 | redirect = false; | ||
100 | 100 | | |||
101 | const QString path = fname; | 101 | const QString &path = fname; | ||
102 | 102 | | |||
103 | QString result = langLookup(path); | 103 | QString result = langLookup(path); | ||
104 | if (result.isEmpty()) { | 104 | if (result.isEmpty()) { | ||
105 | result = langLookup(path + QLatin1String("/index.html")); | 105 | result = langLookup(path + QLatin1String("/index.html")); | ||
106 | if (!result.isEmpty()) { | 106 | if (!result.isEmpty()) { | ||
107 | QUrl red; | 107 | QUrl red; | ||
108 | red.setScheme(QStringLiteral("help")); | 108 | red.setScheme(QStringLiteral("help")); | ||
109 | red.setPath(path + QLatin1String("/index.html")); | 109 | red.setPath(path + QLatin1String("/index.html")); | ||
▲ Show 20 Lines • Show All 290 Lines • Show Last 20 Lines |