aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-10-25 11:35:14 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-11-12 15:06:27 +0000
commit6387f043f7f870e4f0b402dae0b921d99eb82c39 (patch)
tree92cc11f38fc14f550baf8dae113a23a186bb86a4 /com32/menu
parente77d9908b4c701cb1ea6f87ccb8100a9bb3fb0fc (diff)
downloadsyslinux-6387f043f7f870e4f0b402dae0b921d99eb82c39.tar.gz
syslinux-6387f043f7f870e4f0b402dae0b921d99eb82c39.tar.xz
syslinux-6387f043f7f870e4f0b402dae0b921d99eb82c39.zip
menu: Inherit parent menu title
The documentation for the menu system clearly states that all properties of the parent are inherited in the submenu. Unfortunately there's a bug that means this isn't true for the parent's menu title, so fix that. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/menu')
-rw-r--r--com32/menu/readconfig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
index cffe8e3d..3690e480 100644
--- a/com32/menu/readconfig.c
+++ b/com32/menu/readconfig.c
@@ -189,6 +189,9 @@ 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++) {