From 76e194e412041fdfe56a31b2e7969bac206af7d0 Mon Sep 17 00:00:00 2001
From: intrigeri <intrigeri@boum.org>
Date: Tue, 29 Nov 2005 10:08:09 +0000
Subject: [PATCH]  r3552@krups:  intrigeri | 2005-11-15 03:13:03 +0100 
 easydialog: add optional third argument to booleanBox, to set default no if
 needed (and actually needed by the upcoming dup.helper).

---
 handlers/easydialog.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/handlers/easydialog.sh b/handlers/easydialog.sh
index bb7e8e3..0113d9c 100644
--- a/handlers/easydialog.sh
+++ b/handlers/easydialog.sh
@@ -33,7 +33,7 @@ setDimension() {
 
 booleanBox() {
     $DIALOG --backtitle "$BACKTITLE" --title "$1" \
-        --yesno "$2" $HEIGHT $WIDTH
+        `[ "$3" == no ] && echo '--defaultno'` --yesno "$2" $HEIGHT $WIDTH
 }
 
 msgBox() {
-- 
GitLab