summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 14:55:44 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 14:55:44 +0100
commit591e4084287ecc03fa90724fd6c188d133ae2823 (patch)
tree4256aa381b9dbe8ada9349b4cafd56cc4056c925
parentaa74a6859f749f2ff095a7fc4d95c6db4422b41d (diff)
downloaddrakx-net-591e4084287ecc03fa90724fd6c188d133ae2823.tar
drakx-net-591e4084287ecc03fa90724fd6c188d133ae2823.tar.gz
drakx-net-591e4084287ecc03fa90724fd6c188d133ae2823.tar.bz2
drakx-net-591e4084287ecc03fa90724fd6c188d133ae2823.tar.xz
drakx-net-591e4084287ecc03fa90724fd6c188d133ae2823.zip
fix "undefined value for mandatory argument 'sensitive'" (mga#11799)
getters really should _not_ return undef...
-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 1009abe..2d0fee6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix "undefined value for mandatory argument 'sensitive'" (mga#11799)
+
2.1
- fix "undefined value for mandatory argument 'is_active'" (mga#11763)
- fix "undefined value for mandatory argument 'sensitive'" (mga#11764)
diff --git a/lib/network/connection_manager/gtk.pm b/lib/network/connection_manager/gtk.pm
index 779a93a..5eb73ef 100644
--- a/lib/network/connection_manager/gtk.pm
+++ b/lib/network/connection_manager/gtk.pm
@@ -126,7 +126,7 @@ sub update_on_status_change {
));
}
- $cmanager->{gui}{buttons}{connect_start}->set_sensitive($cmanager->{connection} && (!$cmanager->{connection}->get_status || $cmanager->{connection}{network}))
+ $cmanager->{gui}{buttons}{connect_start}->set_sensitive($cmanager->{connection} && (!$cmanager->{connection}->get_status || $cmanager->{connection}{network}) || 0)
if $cmanager->{gui}{buttons}{connect_start};
$cmanager->{gui}{buttons}{connect_stop}->set_sensitive($cmanager->{connection} && $cmanager->{connection}->get_status)
if $cmanager->{gui}{buttons}{connect_stop};