summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-25 16:50:35 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-25 16:50:35 +0000
commit2f2d2f473d6b5e8145b32b4502a416c1bf83da8d (patch)
tree47233d486361e9da2ab3ea49767dfffea206bfa0
parent40e106a0c38c9997f7a5d0149e6be66c4851fe3a (diff)
downloaddrakx-net-2f2d2f473d6b5e8145b32b4502a416c1bf83da8d.tar
drakx-net-2f2d2f473d6b5e8145b32b4502a416c1bf83da8d.tar.gz
drakx-net-2f2d2f473d6b5e8145b32b4502a416c1bf83da8d.tar.bz2
drakx-net-2f2d2f473d6b5e8145b32b4502a416c1bf83da8d.tar.xz
drakx-net-2f2d2f473d6b5e8145b32b4502a416c1bf83da8d.zip
simplify
-rwxr-xr-xlib/network/netcenter.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm
index f533a8f..389bc03 100755
--- a/lib/network/netcenter.pm
+++ b/lib/network/netcenter.pm
@@ -190,12 +190,9 @@ sub main {
$box->show_all;
}
$cmanager->{parent_box}->show;
- return;
}
- $cmanager or return;
if ($status eq "remove") {
- $cmanager->{parent_box}->hide;
- return;
+ $cmanager->{parent_box}->hide if $cmanager;
}
}
});