Verified Commit 3cb34b0c authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Win: Fix help url in config dialog

For windows we always open the help url for Kleopatra.

This fixes:
GnuPG-Bug-Id: T4928
parent ceb701c0
Pipeline #22242 passed with stage
in 19 minutes and 45 seconds
......@@ -213,8 +213,14 @@ void KleoPageConfigDialog::slotHelpClicked()
}
const QString docPath = mHelpUrls.value(item->name());
QUrl docUrl = QUrl(QStringLiteral("help:/")).resolved(QUrl(docPath)); // same code as in KHelpClient::invokeHelp
QUrl docUrl;
#ifdef Q_OS_WIN
docUrl = QUrl(QLatin1String("https://docs.kde.org/index.php?branch=stable5&language=")
+ QLocale().name() + QLatin1String("&application=kleopatra"));
#else
docUrl = QUrl(QStringLiteral("help:/")).resolved(QUrl(docPath)); // same code as in KHelpClient::invokeHelp
#endif
if (docUrl.scheme() == QLatin1String("help") || docUrl.scheme() == QLatin1String("man") || docUrl.scheme() == QLatin1String("info")) {
QProcess::startDetached(QStringLiteral("khelpcenter"), QStringList() << docUrl.toString());
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment