aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/mconf.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-04 14:04:33 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-04 14:04:33 +0000
commitfa0bde3110fff58b01ad15e601d20414aed4c823 (patch)
treec574bee89418b471a4f613a34eaad0d11bd85c1e /scripts/config/mconf.c
parent6581d2defc1699272c5ded70ec9554bf21703e6f (diff)
downloadupstream-fa0bde3110fff58b01ad15e601d20414aed4c823.tar.gz
upstream-fa0bde3110fff58b01ad15e601d20414aed4c823.tar.bz2
upstream-fa0bde3110fff58b01ad15e601d20414aed4c823.zip
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 4896481942..083b23efa3 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: