diff options
Diffstat (limited to 'lib/network')
-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}; } |