Browse Source

kconfig: mark config as changed when loading an alternate config

Michal Zachar <mgzachar@mail.t-com.sk> reported that
menuconfig did not save the new config when loading
an alternate config unless he altered it manually.

Mark config as changed upon load of alternate config fixed this.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Roman Zippel <zippel@linux-m68k.org>
Sam Ravnborg 17 năm trước cách đây
mục cha
commit
36ef805bd5
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      scripts/kconfig/mconf.c

+ 1 - 0
scripts/kconfig/mconf.c

@@ -821,6 +821,7 @@ static void conf_load(void)
 				return;
 				return;
 			if (!conf_read(dialog_input_result)) {
 			if (!conf_read(dialog_input_result)) {
 				set_config_filename(dialog_input_result);
 				set_config_filename(dialog_input_result);
+				sym_set_change_count(1);
 				return;
 				return;
 			}
 			}
 			show_textbox(NULL, _("File does not exist!"), 5, 38);
 			show_textbox(NULL, _("File does not exist!"), 5, 38);