Commit 9a0636f7 authored by Eike Ziller's avatar Eike Ziller
Browse files

Merge remote-tracking branch 'origin/2.4'

parents 3fc2ae7a 00733056
...@@ -138,6 +138,7 @@ bool HelpViewer::launchWithExternalApp(const QUrl &url) ...@@ -138,6 +138,7 @@ bool HelpViewer::launchWithExternalApp(const QUrl &url)
if (!canOpenPage(path)) { if (!canOpenPage(path)) {
Utils::TempFileSaver saver(QDir::tempPath() Utils::TempFileSaver saver(QDir::tempPath()
+ QLatin1String("/qtchelp_XXXXXX.") + QFileInfo(path).completeSuffix()); + QLatin1String("/qtchelp_XXXXXX.") + QFileInfo(path).completeSuffix());
saver.setAutoRemove(false);
if (!saver.hasError()) if (!saver.hasError())
saver.write(helpEngine.fileData(resolvedUrl)); saver.write(helpEngine.fileData(resolvedUrl));
if (saver.finalize(Core::ICore::instance()->mainWindow())) if (saver.finalize(Core::ICore::instance()->mainWindow()))
......
...@@ -344,7 +344,11 @@ Qt4Project::~Qt4Project() ...@@ -344,7 +344,11 @@ Qt4Project::~Qt4Project()
m_manager->unregisterProject(this); m_manager->unregisterProject(this);
delete m_projectFiles; delete m_projectFiles;
m_cancelEvaluate = true; m_cancelEvaluate = true;
delete m_rootProjectNode; // Deleting the root node triggers a few things, make sure rootProjectNode
// returns 0 already
Qt4ProFileNode *root = m_rootProjectNode;
m_rootProjectNode = 0;
delete root;
} }
void Qt4Project::updateFileList() void Qt4Project::updateFileList()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment