diff options
Diffstat (limited to 'lib/network/connection.pm')
-rw-r--r-- | lib/network/connection.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/network/connection.pm b/lib/network/connection.pm index f397f08..0e67acb 100644 --- a/lib/network/connection.pm +++ b/lib/network/connection.pm @@ -158,8 +158,11 @@ sub get_access_settings_label { N("Access settings") } sub get_address_settings_label { N("Address settings") } sub set_provider { - my ($self, $provider_data) = @_; - $self->{provider} = $provider_data; + my ($self) = @_; + if ($self->{provider_name} ne N("Unlisted - edit manually")) { + my @providers_data = $self->get_providers; + $self->{provider} = $providers_data[0]{$self->{provider_name}}; + } } #- check that $self->can('get_protocols') first |