forked from qt-creator/qt-creator
Extend the CSS workaround in the helpviewer
The documentation now uses /doc instead of /qdoc. Change-Id: If01ee02d236cb343f78e0c185a3e05620dac24ae Reviewed-by: Michael Bruning <michael.bruning@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
284f7dfb2f
commit
25a767c760
@@ -138,8 +138,12 @@ QNetworkReply *HelpNetworkAccessManager::createRequest(Operation op,
|
|||||||
if (!engine.findFile(url).isValid()) {
|
if (!engine.findFile(url).isValid()) {
|
||||||
if (url.startsWith(HelpViewer::NsNokia) || url.startsWith(HelpViewer::NsTrolltech)) {
|
if (url.startsWith(HelpViewer::NsNokia) || url.startsWith(HelpViewer::NsTrolltech)) {
|
||||||
QUrl newUrl = request.url();
|
QUrl newUrl = request.url();
|
||||||
if (!newUrl.path().startsWith(QLatin1String("/qdoc/"))) {
|
if (!newUrl.path().startsWith(QLatin1String("/qdoc/")) ||
|
||||||
newUrl.setPath(QLatin1String("/qdoc/") + newUrl.path());
|
!newUrl.path().startsWith(QLatin1String("/doc/"))) {
|
||||||
|
QString path = newUrl.path();
|
||||||
|
newUrl.setPath(QLatin1String("/qdoc/") + path);
|
||||||
|
if (!engine.findFile(newUrl).isValid())
|
||||||
|
newUrl.setPath(QLatin1String("/doc/") + path);
|
||||||
url = newUrl.toString();
|
url = newUrl.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user