@@ -240,34 +240,40 @@ MantidHelpInterface *InterfaceManager::createHelpWindow() const {
240
240
241
241
void InterfaceManager::showHelpPage (const QString &url) {
242
242
auto window = createHelpWindow ();
243
- window->showPage (url);
243
+ if (window)
244
+ window->showPage (url);
244
245
}
245
246
246
247
void InterfaceManager::showAlgorithmHelp (const QString &name, const int version) {
247
248
auto window = createHelpWindow ();
248
- window->showAlgorithm (name, version);
249
+ if (window)
250
+ window->showAlgorithm (name, version);
249
251
}
250
252
251
253
void InterfaceManager::showConceptHelp (const QString &name) {
252
254
auto window = createHelpWindow ();
253
- window->showConcept (name);
255
+ if (window)
256
+ window->showConcept (name);
254
257
}
255
258
256
259
void InterfaceManager::showFitFunctionHelp (const QString &name) {
257
260
auto window = createHelpWindow ();
258
- window->showFitFunction (name);
261
+ if (window)
262
+ window->showFitFunction (name);
259
263
}
260
264
261
265
void InterfaceManager::showCustomInterfaceHelp (const QString &name, const QString &area, const QString §ion) {
262
266
auto window = createHelpWindow ();
263
- window->showCustomInterface (name, area, section);
267
+ if (window)
268
+ window->showCustomInterface (name, area, section);
264
269
}
265
270
266
271
void InterfaceManager::showWebPage (const QString &url) { MantidDesktopServices::openUrl (url); }
267
272
268
273
void InterfaceManager::closeHelpWindow () {
269
274
if (MantidHelpWindow::helpWindowExists ()) {
270
275
auto window = createHelpWindow ();
271
- window->shutdown ();
276
+ if (window)
277
+ window->shutdown ();
272
278
}
273
279
}
0 commit comments