From 266caf9c121d8365f793e45178efeee358572325 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 22 Mar 2007 14:58:01 +0000 Subject: (callback_choices) do not show "cancel" button since URPM::Resolve::resolve_requested() doesn't really expect this (though closing the dialog will still achieve the same effect) it would be better to handle cancel with an exception but that would need more changes --- Rpmdrake/gui.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rpmdrake') diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 64b1e604..a1dd10b6 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -473,7 +473,7 @@ sub callback_choices { $choices = [ sort { $a->name cmp $b->name } @$choices ]; my @choices = interactive_list_(N("Please choose"), (scalar(@$choices) == 1 ? N("The following package is needed:") : N("One of the following packages is needed:")), - [ map { urpm_name($_) } @$choices ], $callback); + [ map { urpm_name($_) } @$choices ], $callback, nocancel => 1); $choices[0] ? $choices->[$choices[0]] : undef; } -- cgit v1.2.1