diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-19 15:54:52 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-19 15:54:52 +0000 |
commit | ca6052523520e23247f0ba1db9d6193404d5843c (patch) | |
tree | 721f984196c810df8b6507e47cadb3ccde65a5be /lib | |
parent | 879fea07386796d18dd9ff8bd18fe3a670ec035b (diff) | |
download | drakx-net-ca6052523520e23247f0ba1db9d6193404d5843c.tar drakx-net-ca6052523520e23247f0ba1db9d6193404d5843c.tar.gz drakx-net-ca6052523520e23247f0ba1db9d6193404d5843c.tar.bz2 drakx-net-ca6052523520e23247f0ba1db9d6193404d5843c.tar.xz drakx-net-ca6052523520e23247f0ba1db9d6193404d5843c.zip |
do not die when no wireless interface is configured (#33123)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection_manager.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index c3e0d20..6cf541e 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -269,8 +269,9 @@ sub update_on_status_change { $cmanager->{gui}{buttons}{connect_stop}->set_sensitive($cmanager->{connection} && $cmanager->{connection}->get_status) if $cmanager->{gui}{buttons}{connect_stop}; - my $may_have_network = !$cmanager->{connection}->can('get_networks') || $cmanager->{connection}{network}; - $cmanager->{gui}{buttons}{configure}->set_sensitive($cmanager->{connection} && $may_have_network) + my $may_have_network = $cmanager->{connection} && + (!$cmanager->{connection}->can('get_networks') || $cmanager->{connection}{network}); + $cmanager->{gui}{buttons}{configure}->set_sensitive($may_have_network) if $cmanager->{gui}{buttons}{configure}; } |