mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Avoid a crash if an external template is not installed
This commit is contained in:
parent
5d7dae9e38
commit
c86f9d81e7
@ -525,7 +525,10 @@ void GuiExternal::updateTemplate()
|
||||
external::TemplateManager::get();
|
||||
external::Template const * const templ = etm.getTemplateByName(
|
||||
fromqstr(externalCO->itemData(externalCO->currentIndex()).toString()));
|
||||
externalTB->setPlainText(toqstr(translateIfPossible(templ->helpText)));
|
||||
externalTB->setPlainText(toqstr(translateIfPossible(
|
||||
templ ? templ->helpText : docstring())));
|
||||
if (!templ)
|
||||
return;
|
||||
|
||||
// Ascertain which (if any) transformations the template supports
|
||||
// and disable tabs and Group Boxes hosting unsupported transforms.
|
||||
|
Loading…
Reference in New Issue
Block a user