summaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
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...
Diffstat (limited to 'lib')
-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 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};