forked from qt-creator/qt-creator
Fix loading files from within documentation.
Task-number: QTSDK-1129 Change-Id: Ief29c41ad4074d74c97b4e8aa9c69a6e4a0d9d67 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
committed by
Oswald Buddenhagen
parent
317ed0a7e6
commit
007330569b
@@ -138,6 +138,7 @@ bool HelpViewer::launchWithExternalApp(const QUrl &url)
|
||||
if (!canOpenPage(path)) {
|
||||
Utils::TempFileSaver saver(QDir::tempPath()
|
||||
+ QLatin1String("/qtchelp_XXXXXX.") + QFileInfo(path).completeSuffix());
|
||||
saver.setAutoRemove(false);
|
||||
if (!saver.hasError())
|
||||
saver.write(helpEngine.fileData(resolvedUrl));
|
||||
if (saver.finalize(Core::ICore::instance()->mainWindow()))
|
||||
|
||||
Reference in New Issue
Block a user