From cbc765de67bc4e947a61323fbcf9b0e01f66c606 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 4 Mar 2007 14:04:33 +0000 Subject: force a config reset when the user changes the target platform in menuconfig git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6503 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/config/mconf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/config/mconf.c') diff --git a/scripts/config/mconf.c b/scripts/config/mconf.c index 489648194..083b23efa 100644 --- a/scripts/config/mconf.c +++ b/scripts/config/mconf.c @@ -920,6 +920,9 @@ static void conf_choice(struct menu *menu) case 0: if (sscanf(input_buf, "%p", &child) != 1) break; + if ((menu->sym->flags & SYMBOL_RESET) && + sym_get_tristate_value(child->sym) != yes) + conf_reset(); sym_set_tristate_value(child->sym, yes); return; case 1: -- cgit v1.2.3