Make sure we can open local files as well.

Reviewed-by: ck
This commit is contained in:
kh1
2010-08-16 15:20:09 +02:00
parent 9aa64498f4
commit 6c580fd71b
2 changed files with 2 additions and 10 deletions

View File

@@ -94,13 +94,7 @@ struct ExtensionMap {
bool HelpViewer::isLocalUrl(const QUrl &url)
{
const QString &scheme = url.scheme();
return scheme.isEmpty()
|| scheme == QLatin1String("file")
|| scheme == QLatin1String("qrc")
|| scheme == QLatin1String("data")
|| scheme == QLatin1String("qthelp")
|| scheme == QLatin1String("about");
return url.scheme() == QLatin1String("qthelp");
}
bool HelpViewer::canOpenPage(const QString &url)