Revert "menu: Inherit parent menu title"
authorMatt Fleming <matt.fleming@intel.com>
Tue, 4 Dec 2012 12:13:48 +0000 (12:13 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 4 Dec 2012 12:13:48 +0000 (12:13 +0000)
This reverts commit 6387f043f7f870e4f0b402dae0b921d99eb82c39.

We got reports of this change causing regressions. The reverted commit
only goes half way to providing proper parent menu title inheritance,
and breaks other configs where the menu label or submenu tagname are
used for the title.

Reported-by: Ady <ady-sf@hotmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/menu/readconfig.c

index d6f9873..dd6d5f9 100644 (file)
@@ -189,9 +189,6 @@ static struct menu *new_menu(struct menu *parent,
        m->menu_master_passwd = refstr_get(parent->menu_master_passwd);
        m->menu_background = refstr_get(parent->menu_background);
 
-       refstr_put(m->title);
-       m->title = refstr_get(parent->title);
-
        m->color_table = copy_color_table(parent->color_table);
 
        for (i = 0; i < 12; i++) {