summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-19 15:54:52 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-19 15:54:52 +0000
commitca6052523520e23247f0ba1db9d6193404d5843c (patch)
tree721f984196c810df8b6507e47cadb3ccde65a5be
parent879fea07386796d18dd9ff8bd18fe3a670ec035b (diff)
downloaddrakx-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)
-rw-r--r--lib/network/connection_manager.pm5
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};
}