r3555@krups: intrigeri | 2005-11-15 13:59:57 +0100
[matthijs/upstream/backupninja.git] / handlers / easydialog.sh
index ff3659f25583852f6eca558257e75ecb5fc661c9..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() {
@@ -244,6 +244,7 @@ formDisplay() {
    ) | xargs $DIALOG 2> $temp
    local status=$?
    
+   REPLY=
    if [ $status = 0 ]; then
       IFS=$''
       REPLY=`cat $temp`