aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-22 14:58:01 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-22 14:58:01 +0000
commit266caf9c121d8365f793e45178efeee358572325 (patch)
treee133dd5f9d9779612b02e242e908b3837ab10fa9
parent9fe1e15f6191fe02804bc745673ba04dee65b1d8 (diff)
downloadrpmdrake-266caf9c121d8365f793e45178efeee358572325.tar
rpmdrake-266caf9c121d8365f793e45178efeee358572325.tar.gz
rpmdrake-266caf9c121d8365f793e45178efeee358572325.tar.bz2
rpmdrake-266caf9c121d8365f793e45178efeee358572325.tar.xz
rpmdrake-266caf9c121d8365f793e45178efeee358572325.zip
(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
-rw-r--r--Rpmdrake/gui.pm2
1 files changed, 1 insertions, 1 deletions
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;
}