summaryrefslogtreecommitdiffstats
path: root/bin/net_applet
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-30 18:55:40 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-30 18:55:40 +0000
commit45a711161a85f185159fbaac6470e8308195cb8e (patch)
tree1540e2a829c42bed890d76ee4fc0063afae95521 /bin/net_applet
parent67146b24a64ddd56258fe4560275ce4bd4ef5b75 (diff)
downloaddrakx-net-45a711161a85f185159fbaac6470e8308195cb8e.tar
drakx-net-45a711161a85f185159fbaac6470e8308195cb8e.tar.gz
drakx-net-45a711161a85f185159fbaac6470e8308195cb8e.tar.bz2
drakx-net-45a711161a85f185159fbaac6470e8308195cb8e.tar.xz
drakx-net-45a711161a85f185159fbaac6470e8308195cb8e.zip
be safer ("id" should exist only if a monitor exist when running as non-root user)
Diffstat (limited to 'bin/net_applet')
-rwxr-xr-xbin/net_applet2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/net_applet b/bin/net_applet
index defa97c..d685ec7 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -235,7 +235,7 @@ sub generate_wireless_menuitem {
0, $menuitem->{security} = Gtk2::Image->new,
));
$menuitem->{activate} = $menuitem->{widget}->signal_connect('activate' => sub {
- if (exists $wnet->{id}) {
+ if ($monitor && exists $wnet->{id}) {
eval { $monitor->select_network($wnet->{id}) };
$@ and err_dialog(N("Interactive Firewall"), N("Unable to contact daemon"));
} else {