Skip to content
Snippets Groups Projects
Commit 22ef26ac authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't lose network config changes when hitting ESC at Save Changes prompt

parent 65989a39
No related branches found
No related tags found
No related merge requests found
...@@ -437,7 +437,14 @@ void net_cfg() ...@@ -437,7 +437,14 @@ void net_cfg()
,"QWK Packet Networks",opt); ,"QWK Packet Networks",opt);
switch(i) { switch(i) {
case -1: /* ESC */ case -1: /* ESC */
i = save_changes(WIN_MID|WIN_SAV);
if(i == -1)
continue;
done=1; done=1;
if(i == 0) {
save_msgs_cfg(&cfg);
refresh_cfg(&cfg);
}
break; break;
case 1: case 1:
uifc.helpbuf= uifc.helpbuf=
...@@ -580,7 +587,14 @@ void net_cfg() ...@@ -580,7 +587,14 @@ void net_cfg()
,"FidoNet EchoMail and NetMail",opt); ,"FidoNet EchoMail and NetMail",opt);
switch(i) { switch(i) {
case -1: /* ESC */ case -1: /* ESC */
i = save_changes(WIN_MID|WIN_SAV);
if(i == -1)
continue;
done=1; done=1;
if(i == 0) {
save_msgs_cfg(&cfg);
refresh_cfg(&cfg);
}
break; break;
case 0: case 0:
uifc.helpbuf= uifc.helpbuf=
...@@ -924,7 +938,14 @@ void net_cfg() ...@@ -924,7 +938,14 @@ void net_cfg()
,"Internet E-mail",opt); ,"Internet E-mail",opt);
switch(i) { switch(i) {
case -1: /* ESC */ case -1: /* ESC */
i = save_changes(WIN_MID|WIN_SAV);
if(i == -1)
continue;
done=1; done=1;
if(i == 0) {
save_msgs_cfg(&cfg);
refresh_cfg(&cfg);
}
break; break;
case 0: case 0:
edit_sys_inetaddr(false, false); edit_sys_inetaddr(false, false);
...@@ -1055,14 +1076,6 @@ void net_cfg() ...@@ -1055,14 +1076,6 @@ void net_cfg()
} }
} }
} }
i=save_changes(WIN_MID|WIN_SAV);
if(i==-1)
continue;
if(!i) {
save_msgs_cfg(&cfg);
refresh_cfg(&cfg);
}
free_msgs_cfg(&cfg); free_msgs_cfg(&cfg);
free_main_cfg(&cfg); free_main_cfg(&cfg);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment