fixed crash when CustomMenu doesn't point to a real file
markt markt
2 files changed,
5 insertions(+),
0 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,5 +1,8 @@
(Format: Year/Month/Day) Changes for 1.0.0: +*07/04/19: + * Fixed crash when CustomMenu command doesn't point to a file (Mark) + FbCommands.cc *07/04/17: * cosmetic changes (Mathias, thanks Slava Semushin) configure.in Screen.cc Keys.cc main.cc FbTk/MenuItem.hh FbTk/Timer.hh
M
src/FbCommands.cc
→
src/FbCommands.cc
@@ -281,6 +281,8 @@ if (screen == 0)
return; m_menu = MenuCreator::createFromFile(custom_menu_file, screen->screenNumber(), true); + if (!m_menu.get()) + return; ::showMenu(*screen, **m_menu); }