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
commiteea7bb328dfbd8ad1fdc451c6c57b87c9a0719e4 (patch)
tree762e679fc4d5702436a719a3ed863e3218a67295 /scripts/config/mconf.c
parent026e6046eb08949eda01b116da8947a06e407e17 (diff)
downloadupstream-eea7bb328dfbd8ad1fdc451c6c57b87c9a0719e4.tar.gz
upstream-eea7bb328dfbd8ad1fdc451c6c57b87c9a0719e4.tar.bz2
upstream-eea7bb328dfbd8ad1fdc451c6c57b87c9a0719e4.zip
force a config reset when the user changes the target platform in menuconfig
SVN-Revision: 6503
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: