diff options
author | okan <okan> | 2013-04-08 13:05:27 +0000 |
---|---|---|
committer | okan <okan> | 2013-04-08 13:05:27 +0000 |
commit | 62a685d82a7c2c91ce82323778f0105d34ad7321 (patch) | |
tree | 15e2a3d7cb20c39a890989b4fb1a38f7ab315237 /group.c | |
parent | 28b54db2217c0398132a6b049231c99a99a84160 (diff) | |
download | cwm-62a685d82a7c2c91ce82323778f0105d34ad7321.tar.gz cwm-62a685d82a7c2c91ce82323778f0105d34ad7321.tar.xz cwm-62a685d82a7c2c91ce82323778f0105d34ad7321.zip |
reverse logic to make it like the others
Diffstat (limited to 'group.c')
-rw-r--r-- | group.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/group.c b/group.c index dd47e06..cda8d0a 100644 --- a/group.c +++ b/group.c @@ -375,15 +375,11 @@ group_menu(XButtonEvent *e) return; mi = menu_filter(sc, &menuq, NULL, NULL, 0, NULL, NULL); + if (mi != NULL && mi->ctx != NULL) { + gc = (struct group_ctx *)mi->ctx; + (gc->hidden) ? group_show(sc, gc) : group_hide(sc, gc); + } - if (mi == NULL || mi->ctx == NULL) - goto cleanup; - - gc = (struct group_ctx *)mi->ctx; - - (gc->hidden) ? group_show(sc, gc) : group_hide(sc, gc); - -cleanup: menuq_clear(&menuq); } |