Fix crash at start up on trial version (when !ENABLE_SCRIPTING)

This commit is contained in:
David Capello 2020-04-25 09:38:19 -03:00
parent 2418a075ca
commit 99a9ee49cb

View File

@ -382,6 +382,11 @@ void AppMenus::reload()
if (scriptsMenu) {
delete scriptsMenu;
delete m_rootMenu->findItemById("scripts_menu_separator");
// Remove scripts group
auto it = m_groups.find("file_scripts");
if (it != m_groups.end())
m_groups.erase(it);
}
#endif
}