From 99a9ee49cbb8658e10680681dadf2756ff18a8a0 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 25 Apr 2020 09:38:19 -0300 Subject: [PATCH] Fix crash at start up on trial version (when !ENABLE_SCRIPTING) --- src/app/app_menus.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/app_menus.cpp b/src/app/app_menus.cpp index e72863e64..0f29e0937 100644 --- a/src/app/app_menus.cpp +++ b/src/app/app_menus.cpp @@ -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 }