summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-13 17:43:24 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-13 17:43:24 +0000
commit80ad09a47ed5bbf60fb53a3d44f61557382e16f6 (patch)
tree8209f0bf4385929058294d749c11aa57cad52301 /lib
parent58be0e0bd54c257479b38a34a50ad95b0db1276b (diff)
downloaddrakx-net-80ad09a47ed5bbf60fb53a3d44f61557382e16f6.tar
drakx-net-80ad09a47ed5bbf60fb53a3d44f61557382e16f6.tar.gz
drakx-net-80ad09a47ed5bbf60fb53a3d44f61557382e16f6.tar.bz2
drakx-net-80ad09a47ed5bbf60fb53a3d44f61557382e16f6.tar.xz
drakx-net-80ad09a47ed5bbf60fb53a3d44f61557382e16f6.zip
allow to run configure if type can't get networks
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection_manager.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index e7a8401..58c4e6a 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -267,7 +267,8 @@ sub update_on_status_change {
if $cmanager->{gui}{buttons}{connect_stop};
#- allow to configure only if a network is selected
- $cmanager->{gui}{buttons}{configure}->set_sensitive($cmanager->{connection} && $cmanager->{connection}{network})
+ my $may_have_network = !$cmanager->{connection}->can('get_networks') || $cmanager->{connection}{network};
+ $cmanager->{gui}{buttons}{configure}->set_sensitive($cmanager->{connection} && $may_have_network)
if $cmanager->{gui}{buttons}{configure};
}