summaryrefslogtreecommitdiffstats
path: root/scripts/config/mconf.c
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-04 14:04:33 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-04 14:04:33 +0000
commitcbc765de67bc4e947a61323fbcf9b0e01f66c606 (patch)
treec574bee89418b471a4f613a34eaad0d11bd85c1e /scripts/config/mconf.c
parent34a4576552eb459c762a56202077b42c9e51661e (diff)
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
Diffstat (limited to 'scripts/config/mconf.c')
-rw-r--r--scripts/config/mconf.c3
1 files changed, 3 insertions, 0 deletions
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: