In case of network error print the error string.

Task-number: QTCREATORBUG-3378
This commit is contained in:
kh1
2011-01-11 16:10:22 +01:00
parent 80cd57a9b1
commit d8035bcaca
3 changed files with 17 additions and 2 deletions

View File

@@ -868,10 +868,10 @@ void HelpPlugin::activateContext()
if (HelpViewer* viewer = viewerForContextMode()) {
if (links.isEmpty()) {
// No link found or no context object
viewer->setSource(QUrl(Help::Constants::AboutBlank));
viewer->setHtml(tr("<html><head><title>No Documentation</title>"
"</head><body><br/><center><b>%1</b><br/>No documentation "
"available.</center></body></html>").arg(m_idFromContext));
viewer->setSource(QUrl());
} else {
int version = 0;
const QRegExp exp("(\\d+)");