From 501bcb87703f3fdc7a85172e923cf4da1aabec3d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 26 May 2008 12:47:56 +0000 Subject: reload provider settings only when apply provider settings --- lib/network/connection/cellular.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/network/connection/cellular.pm') diff --git a/lib/network/connection/cellular.pm b/lib/network/connection/cellular.pm index 11e6be1..71509c4 100644 --- a/lib/network/connection/cellular.pm +++ b/lib/network/connection/cellular.pm @@ -55,8 +55,8 @@ sub guess_provider_settings { } sub guess_access_settings { - my ($self) = @_; - my $settings = $self->load_cellular_settings || {}; + my ($self, $o_provider_only) = @_; + my $settings = !$o_provider_only && $self->load_cellular_settings || {}; $self->{access}{$_} = $settings->{uc($_)} || $self->{provider}{$_} foreach qw(login password apn); } -- cgit v1.2.1