From 6f6740ad5cc6c0d60440c8a2cece76b9c7b2bf0c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 15 Feb 2002 13:25:18 +0000 Subject: favour "combo" over "list" in any case --- perl-install/interactive.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/interactive.pm') diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index bf3a818b0..b0bab6637 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -261,7 +261,7 @@ sub ask_from_normalize { $e->{type} = 'iconlist' if $e->{icon2f}; $e->{type} = 'treelist' if $e->{separator}; add2hash_($e, { not_edit => 1 }); - $e->{type} ||= $e->{not_edit} && @$l == 1 ? 'list' : 'combo'; + $e->{type} ||= 'combo'; ${$e->{val}} = $li->[0] if ($e->{type} ne 'combo' || $e->{not_edit}) && !member(${$e->{val}}, @$li); if ($e->{type} eq 'combo' && $e->{format}) { my @l = map { $e->{format}->($_) } @{$e->{list}}; -- cgit v1.2.1