summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-08-01 21:23:44 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-08-01 21:23:44 +0200
commitc70a4c92c554ccca13edcb60b15e12af56d13f60 (patch)
treecbef5c7b8109c46f42829bbf565bdfd5feb5b862 /src/core
parent6026c6971851c860a4cee203b20216fff4b3216f (diff)
use auto-sizing for yesno dialogs
Diffstat (limited to 'src/core')
-rw-r--r--src/core/libs/lib-ui.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh
index 113e66d..5a8140f 100644
--- a/src/core/libs/lib-ui.sh
+++ b/src/core/libs/lib-ui.sh
@@ -438,11 +438,10 @@ _dia_ask_string ()
_dia_ask_yesno ()
{
local default
- height=$((`echo -e "$1" | wc -l` +7))
str=$1
# If $2 contains an explicit 'no' we set defaultno for yesno dialog
[ "$2" == "no" ] && default="--defaultno"
- dialog $default --yesno "$str" $height 55 # returns 0 for yes, 1 for no
+ dialog $default --yesno "$str" 0 0 # returns 0 for yes, 1 for no
local ret=$?
[ $ret -eq 0 ] && debug 'UI' "dia_ask_yesno: User picked YES"
[ $ret -gt 0 ] && debug 'UI' "dia_ask_yesno: User picked NO"