]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kconfig: set MENU_CHANGED to choice when the selected member is changed
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 24 Jun 2025 15:04:49 +0000 (00:04 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 27 Jun 2025 16:57:59 +0000 (01:57 +0900)
In gconf, choice entries display the selected symbol in the 'Value'
column, but it is not updated when the selected symbol is changed.

Set the MENU_CHANGED flag, so it is updated.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/symbol.c

index d57f8cbba291d4222c66dab3ee09db1f9152706c..26ab10c0fd768f6517a2e4fb730f8529cac0ece4 100644 (file)
@@ -195,6 +195,10 @@ static void sym_set_changed(struct symbol *sym)
 
        list_for_each_entry(menu, &sym->menus, link)
                menu->flags |= MENU_CHANGED;
+
+       menu = sym_get_choice_menu(sym);
+       if (menu)
+               menu->flags |= MENU_CHANGED;
 }
 
 static void sym_set_all_changed(void)