diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-12-09 09:40:45 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-12-09 09:40:45 +0000 |
commit | 34fc705e3ae71bfb0b956e172804c8962e5487bb (patch) | |
tree | 3decdc7da8abc36e68f75f619ae1edb196850fdd /lib/network/drakroam.pm | |
parent | c8ce50f3fa4561365a7a1c6f401042f4fe385da2 (diff) | |
download | drakx-net-34fc705e3ae71bfb0b956e172804c8962e5487bb.tar drakx-net-34fc705e3ae71bfb0b956e172804c8962e5487bb.tar.gz drakx-net-34fc705e3ae71bfb0b956e172804c8962e5487bb.tar.bz2 drakx-net-34fc705e3ae71bfb0b956e172804c8962e5487bb.tar.xz drakx-net-34fc705e3ae71bfb0b956e172804c8962e5487bb.zip |
fix crash when there is no wireless interface
Diffstat (limited to 'lib/network/drakroam.pm')
-rwxr-xr-x | lib/network/drakroam.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/drakroam.pm b/lib/network/drakroam.pm index f7b9d55..ac5fa60 100755 --- a/lib/network/drakroam.pm +++ b/lib/network/drakroam.pm @@ -47,7 +47,7 @@ sub select_connection { sub update_on_connection_change { my ($droam) = @_; - return if !$droam->check_setup; + return if !($droam->{connection} && $droam->check_setup); $droam->{gui}{buttons}{refresh}->set_sensitive(to_bool($droam->{connection})) if $droam->{gui}{buttons}{refresh}; $droam->update_networks; |