From: intrigeri Date: Tue, 29 Nov 2005 10:08:09 +0000 (+0000) Subject: r3552@krups: intrigeri | 2005-11-15 03:13:03 +0100 X-Git-Tag: backupninja-0.9.2~62 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=commitdiff_plain;h=76e194e412041fdfe56a31b2e7969bac206af7d0 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). --- 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() {