summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-20 07:03:10 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-20 07:03:10 +0000
commitbb82abd56cebbbc2ab1e989d61efba9142634032 (patch)
tree51cb8330a01556a683961d870a593c71869b03e7 /lib/Xconfig
parentc5a1d9ca64b458a7ffb06c92e6176b344cd27554 (diff)
downloaddrakx-kbd-mouse-x11-bb82abd56cebbbc2ab1e989d61efba9142634032.tar
drakx-kbd-mouse-x11-bb82abd56cebbbc2ab1e989d61efba9142634032.tar.gz
drakx-kbd-mouse-x11-bb82abd56cebbbc2ab1e989d61efba9142634032.tar.bz2
drakx-kbd-mouse-x11-bb82abd56cebbbc2ab1e989d61efba9142634032.tar.xz
drakx-kbd-mouse-x11-bb82abd56cebbbc2ab1e989d61efba9142634032.zip
- fix regression in 0.24: remove bogus duplicates in monitors tree (#33778)
Diffstat (limited to 'lib/Xconfig')
-rw-r--r--lib/Xconfig/monitor.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Xconfig/monitor.pm b/lib/Xconfig/monitor.pm
index b5a05c3..6d1e851 100644
--- a/lib/Xconfig/monitor.pm
+++ b/lib/Xconfig/monitor.pm
@@ -116,7 +116,7 @@ sub choose {
interactive_help_id => 'configureX_monitor'
},
[ { val => \$merged_name, separator => '|',
- list => ['Custom', "Plug'n Play", @l_monitors],
+ list => ['Custom', "Plug'n Play", uniq(@l_monitors)],
format => sub { $_[0] eq 'Custom' ? N("Custom") :
$_[0] eq "Plug'n Play" ? N("Plug'n Play") . ($monitor->{VendorName} eq "Plug'n Play" ? " ($monitor->{ModelName})" : '') :
$_[0] =~ /^Generic\|(.*)/ ? N("Generic") . "|$1" :