summaryrefslogtreecommitdiffstats
path: root/lib/network/connection_manager
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/connection_manager')
-rw-r--r--lib/network/connection_manager/gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection_manager/gtk.pm b/lib/network/connection_manager/gtk.pm
index 1c56079..779a93a 100644
--- a/lib/network/connection_manager/gtk.pm
+++ b/lib/network/connection_manager/gtk.pm
@@ -122,7 +122,7 @@ sub update_on_status_change {
$cmanager->{connection} && (
!$cmanager->{connection}->can('get_networks') ||
$cmanager->{connection}->get_status || #- always allow to disconnect if connected
- $cmanager->{connection}{network}
+ $cmanager->{connection}{network} || 0
));
}