forked from qt-creator/qt-creator
Help: Only open 'internal' documentation links in Qt Creator
Open external webpages in external browser. Task-number: QTCREATORBUG-8433 Change-Id: I760f6c5705046a6f8b7ebec3cd7b32253738e0df Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
This commit is contained in:
@@ -126,15 +126,14 @@ bool HelpViewer::launchWithExternalApp(const QUrl &url)
|
||||
if (!saver.hasError())
|
||||
saver.write(helpEngine.fileData(resolvedUrl));
|
||||
if (saver.finalize(Core::ICore::mainWindow()))
|
||||
return QDesktopServices::openUrl(QUrl(saver.fileName()));
|
||||
QDesktopServices::openUrl(QUrl(saver.fileName()));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (url.scheme() == QLatin1String("mailto"))
|
||||
return QDesktopServices::openUrl(url);
|
||||
|
||||
return false;
|
||||
}
|
||||
QDesktopServices::openUrl(url);
|
||||
return true;
|
||||
}
|
||||
|
||||
void HelpViewer::home()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user