diff --git a/Code/Mantid/MantidPlot/src/ApplicationWindow.cpp b/Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
index 2107d3d..3f3b656 100644
a
|
b
|
void ApplicationWindow::closeEvent( QCloseEvent* ce ) |
9555 | 9555 | m_scriptInterpreter->shutdown(); |
9556 | 9556 | scriptingEnv()->finalize(); |
9557 | 9557 | |
| 9558 | // Help window |
| 9559 | HelpWindow::Instance().hostShuttingDown(); |
| 9560 | |
9558 | 9561 | ce->accept(); |
9559 | 9562 | |
9560 | 9563 | } |
diff --git a/Code/Mantid/MantidQt/API/inc/MantidQtAPI/HelpWindow.h b/Code/Mantid/MantidQt/API/inc/MantidQtAPI/HelpWindow.h
index f317c34..905086e 100644
a
|
b
|
public: |
19 | 19 | void showAlgorithm(const std::string &name=std::string(), const int version=-1); |
20 | 20 | void showAlgorithm(const QString &name, const int version=-1); |
21 | 21 | void showFitFunction(const std::string &name=std::string()); |
| 22 | void hostShuttingDown(); |
22 | 23 | |
23 | 24 | private: |
24 | 25 | friend struct Mantid::Kernel::CreateUsingNew<HelpWindowImpl>; |
diff --git a/Code/Mantid/MantidQt/API/src/HelpWindow.cpp b/Code/Mantid/MantidQt/API/src/HelpWindow.cpp
index bc9ff56..301f6ed 100644
a
|
b
|
void HelpWindowImpl::showFitFunction(const std::string &name) |
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
| 117 | * Can be called by the host process to indicate that it will |
| 118 | * close soon. This closes the help window & releases the QProcess |
| 119 | */ |
| 120 | void HelpWindowImpl::hostShuttingDown() |
| 121 | { |
| 122 | if(m_process) |
| 123 | { |
| 124 | m_process->kill(); |
| 125 | // Delete |
| 126 | m_process.reset(); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | |
| 131 | /** |
117 | 132 | * Start up the help browser in a separate process. |
118 | 133 | * |
119 | 134 | * This will only do something if the browser is not already |