From 356e9604a5a8f8c3509fa9f8e01027c5ffee8176 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Fri, 27 Feb 2015 01:33:14 +0000 Subject: [PATCH] Do not exit the program on ESC from the bbs list menus while connected. Reported by Android8675 --- src/syncterm/bbslist.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/syncterm/bbslist.c b/src/syncterm/bbslist.c index 6c35fd4919..0f1482351b 100644 --- a/src/syncterm/bbslist.c +++ b/src/syncterm/bbslist.c @@ -1662,8 +1662,9 @@ struct bbslist *show_bbslist(char *current, int connected) } break; case -1: /* ESC */ - if (!check_exit(TRUE)) - continue; + if(!connected) + if (!check_exit(TRUE)) + continue; free_list(&list[0],listcount); return(NULL); } @@ -1881,8 +1882,9 @@ struct bbslist *show_bbslist(char *current, int connected) at_settings=!at_settings; break; case -1: /* ESC */ - if (!check_exit(TRUE)) - continue; + if (!connected) + if (!check_exit(TRUE)) + continue; free_list(&list[0],listcount); return(NULL); case 0: /* Edit default connection settings */ -- GitLab