From: Andre Noll Date: Tue, 5 Jul 2022 22:10:59 +0000 (+0200) Subject: gui: Treat dialog exit code 255 just like 1. X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=commitdiff_plain;h=64712f59781b7d1029773b6f555f74c964129040 gui: Treat dialog exit code 255 just like 1. Dialog exits with code 255 if escape was pressed. This change makes the escape key more useful in the main menu invoked via _browse() since it no longer terminates the program but results to show the parent menu. --- diff --git a/gui b/gui index 4297564..e9eb1a8 100644 --- a/gui +++ b/gui @@ -30,7 +30,7 @@ _set_dialog_ret() case "$ec" in 0) ret=$GSU_SUCCESS;; - 1) ret=1;; # cancelled + 1|255) ret=1;; # cancelled *) result="dialog exit code $ec" ret=-$E_GSU_DIALOG