summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network')
-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};
}