aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/menu/readconfig.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
index e26105ad..0d3093b2 100644
--- a/com32/menu/readconfig.c
+++ b/com32/menu/readconfig.c
@@ -624,7 +624,11 @@ static void parse_config_file(FILE *f)
}
}
} else if ( looking_at(p, "default") ) {
- ld.menudefault = 1;
+ if (ld.label) {
+ ld.menudefault = 1;
+ } else if (m->parent_entry) {
+ m->parent->defentry = m->parent_entry->entry;
+ }
} else if ( looking_at(p, "hide") ) {
ld.menuhide = 1;
} else if ( looking_at(p, "passwd") ) {