r3552@krups: intrigeri | 2005-11-15 03:13:03 +0100
authorintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Tue, 29 Nov 2005 10:08:09 +0000 (10:08 +0000)
committerintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Tue, 29 Nov 2005 10:08:09 +0000 (10:08 +0000)
 easydialog: add optional third argument to booleanBox, to set default no if needed (and actually needed by the upcoming dup.helper).

git-svn-id: http://code.autistici.org/svn/backupninja/trunk@236 758a04ac-41e6-0310-8a23-8373a73cc35d

handlers/easydialog.sh

index bb7e8e3a8f97fc9aa2494916269b5cf09846312a..0113d9cb18885b997916996245d14d67064318df 100644 (file)
@@ -33,7 +33,7 @@ setDimension() {
 
 booleanBox() {
     $DIALOG --backtitle "$BACKTITLE" --title "$1" \
-        --yesno "$2" $HEIGHT $WIDTH
+        `[ "$3" == no ] && echo '--defaultno'` --yesno "$2" $HEIGHT $WIDTH
 }
 
 msgBox() {