summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-08-08 15:21:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-08-08 15:21:40 +0000
commit90592dcfd7be0b16a6893193d7bcfb3abb1e57f0 (patch)
tree39d00a47721448c860f21b83abc6c7b63ae37e06 /perl-install
parent2081830eabca5455daed8cf56604cebf7d31b426 (diff)
downloaddrakx-90592dcfd7be0b16a6893193d7bcfb3abb1e57f0.tar
drakx-90592dcfd7be0b16a6893193d7bcfb3abb1e57f0.tar.gz
drakx-90592dcfd7be0b16a6893193d7bcfb3abb1e57f0.tar.bz2
drakx-90592dcfd7be0b16a6893193d7bcfb3abb1e57f0.tar.xz
drakx-90592dcfd7be0b16a6893193d7bcfb3abb1e57f0.zip
differentiate (nfs)servers on ip first to have less dups (bugzilla #17236)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/diskdrake/smbnfs_gtk.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/diskdrake/smbnfs_gtk.pm b/perl-install/diskdrake/smbnfs_gtk.pm
index f30857ce0..0cabb06f5 100644
--- a/perl-install/diskdrake/smbnfs_gtk.pm
+++ b/perl-install/diskdrake/smbnfs_gtk.pm
@@ -145,8 +145,9 @@ sub import_tree {
my $add_server = sub {
my ($server) = @_;
+ my $identifier = $server->{ip} || $server->{name};
my $name = $server->{name} || $server->{ip};
- $servers_displayed{$name} ||= do {
+ $servers_displayed{$identifier} ||= do {
my $w = $tree_model->append_set(undef, [ 0 => $icons{server}, 1 => $name ]);
$wservers{$tree_model->get_path_str($w)} = $server;
$w;