Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 46edf43

Browse files
committed
kconfig: gconf: give a proper initial state to the Save button
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>
1 parent c181689 commit 46edf43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/kconfig/gconf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,14 +1422,15 @@ int main(int ac, char *av[])
14221422

14231423
conf_parse(name);
14241424
fixup_rootmenu(&rootmenu);
1425-
conf_read(NULL);
14261425

14271426
/* Load the interface and connect signals */
14281427
init_main_window(glade_file);
14291428
init_tree_model();
14301429
init_left_tree();
14311430
init_right_tree();
14321431

1432+
conf_read(NULL);
1433+
14331434
switch (view_mode) {
14341435
case SINGLE_VIEW:
14351436
display_tree_part();

0 commit comments

Comments
 (0)