summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--lib/network/connection_manager/gtk.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 4769737..d066172 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix "undefined value for mandatory argument 'sensitive'" (mga#11764)
+
2.0
- port to Gtk+3 (net_applet notification works again!)
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
));
}