From 3980e3c40a0ca4da702e53368b63c923824d224c Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 19 Apr 2007 19:12:56 +0000 Subject: fixed crash when CustomMenu doesn't point to a real file --- ChangeLog | 3 +++ src/FbCommands.cc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9674e05..bf7d664 100644 --- a/ChangeLog +++ b/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 diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 20d45e0..060f4d3 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc @@ -281,6 +281,8 @@ void ShowCustomMenuCmd::execute() { return; m_menu = MenuCreator::createFromFile(custom_menu_file, screen->screenNumber(), true); + if (!m_menu.get()) + return; ::showMenu(*screen, **m_menu); } -- cgit v0.11.2