summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network')
-rwxr-xr-xlib/network/drakroam.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/drakroam.pm b/lib/network/drakroam.pm
index f7b9d55..ac5fa60 100755
--- a/lib/network/drakroam.pm
+++ b/lib/network/drakroam.pm
@@ -47,7 +47,7 @@ sub select_connection {
sub update_on_connection_change {
my ($droam) = @_;
- return if !$droam->check_setup;
+ return if !($droam->{connection} && $droam->check_setup);
$droam->{gui}{buttons}{refresh}->set_sensitive(to_bool($droam->{connection}))
if $droam->{gui}{buttons}{refresh};
$droam->update_networks;