summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
}
});