forked from qt-creator/qt-creator
Help: Fix online documentation path
When trying to open pages that should be in the installed documentation, but are not, we try to open the page from the online documentation in the external browser (e.g. for the links from Welcome mode). Looks like the online documentation moved. Change-Id: I7a8eaf37783661dc4751a12b65efeac419d3a802 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -625,7 +625,7 @@ void HelpPlugin::handleHelpRequest(const QUrl &url, HelpManager::HelpViewerLocat
|
|||||||
if (url.authority() == "org.qt-project.qtcreator")
|
if (url.authority() == "org.qt-project.qtcreator")
|
||||||
urlPrefix.append(QString::fromLatin1("qtcreator"));
|
urlPrefix.append(QString::fromLatin1("qtcreator"));
|
||||||
else
|
else
|
||||||
urlPrefix.append("latest");
|
urlPrefix.append("qt-5");
|
||||||
address = urlPrefix + address.mid(address.lastIndexOf(QLatin1Char('/')));
|
address = urlPrefix + address.mid(address.lastIndexOf(QLatin1Char('/')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user