Skip to content

Commit 30c4eaa

Browse files
Li Zefanmichal42
authored andcommitted
menuconfig: fix a regression when canceling the prompt dialog at exit
This commit fixes a bug, while introducing a new one.. commit 7203ddbd4be9720649e47d756a001e0c7d7f8ae2 Author: Wang YanQing <udknight@gmail.com> Date: Thu Jan 12 11:31:32 2012 +0800 menuconfig: let make not report error when not save configuration Pressing ESC should cancel the yes/no dialog and return back to the main menu, but not exit from menuconfig. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Wang YanQing <udknight@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 37ae2d5 commit 30c4eaa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/kconfig/mconf.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,8 @@ static int handle_exit(void)
830830
fprintf(stderr, _("\n\n"
831831
"Your configuration changes were NOT saved."
832832
"\n\n"));
833-
res = 0;
833+
if (res != KEY_ESC)
834+
res = 0;
834835
}
835836

836837
return res;

0 commit comments

Comments
 (0)