From 90592dcfd7be0b16a6893193d7bcfb3abb1e57f0 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 8 Aug 2005 15:21:40 +0000 Subject: differentiate (nfs)servers on ip first to have less dups (bugzilla #17236) --- perl-install/diskdrake/smbnfs_gtk.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') 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; -- cgit v1.2.1