From 7b65469aea4db91cb704c4fe283773a0ffb72d7d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 14 May 2003 18:40:33 +0000 Subject: [PATCH] watch out for not loading the timed_menu plugin --- openbox/menu.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/openbox/menu.c b/openbox/menu.c index 11d04009..425a7537 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -93,10 +93,12 @@ void menu_startup() menu_add_entry(m, menu_entry_new_submenu("subz", s)); t = (Menu *)plugin_create("timed_menu"); - a = action_from_string("execute"); - a->data.execute.path = g_strdup("xeyes"); - menu_add_entry(t, menu_entry_new("xeyes", a)); - menu_add_entry(m, menu_entry_new_submenu("timed", t)); + if (t) { + a = action_from_string("execute"); + a->data.execute.path = g_strdup("xeyes"); + menu_add_entry(t, menu_entry_new("xeyes", a)); + menu_add_entry(m, menu_entry_new_submenu("timed", t)); + } s = menu_new("empty", "chub", m); menu_add_entry(m, menu_entry_new_submenu("empty", s)); -- 2.45.2