]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
kconfig: gconf: give a proper initial state to the Save button
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 1 Jun 2024 18:20:40 +0000 (03:20 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Jul 2024 08:38:29 +0000 (10:38 +0200)
[ Upstream commit 46edf4372e336ef3a61c3126e49518099d2e2e6d ]

Currently, the initial state of the "Save" button is always active.

If none of the CONFIG options are changed while loading the .config
file, the "Save" button should be greyed out.

This can be fixed by calling conf_read() after widget initialization.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/kconfig/gconf.c

index e36b342f1065b750b4e0f9105a015c66bb38d94f..9b10f1248da110455cccab28c2b734ac2914b8a9 100644 (file)
@@ -1483,7 +1483,6 @@ int main(int ac, char *av[])
 
        conf_parse(name);
        fixup_rootmenu(&rootmenu);
-       conf_read(NULL);
 
        /* Load the interface and connect signals */
        init_main_window(glade_file);
@@ -1491,6 +1490,8 @@ int main(int ac, char *av[])
        init_left_tree();
        init_right_tree();
 
+       conf_read(NULL);
+
        switch (view_mode) {
        case SINGLE_VIEW:
                display_tree_part();