mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
redundant check for 'list'
This commit is contained in:
parent
d9f38134be
commit
f22a3b1065
2
menu.c
2
menu.c
@ -338,7 +338,7 @@ menu_draw(struct menu_ctx *mc, struct menu_q *menuq, struct menu_q *resultq)
|
||||
int n, xsave, ysave;
|
||||
|
||||
if (mc->list) {
|
||||
if (TAILQ_EMPTY(resultq) && mc->list) {
|
||||
if (TAILQ_EMPTY(resultq)) {
|
||||
/* Copy them all over. */
|
||||
TAILQ_FOREACH(mi, menuq, entry)
|
||||
TAILQ_INSERT_TAIL(resultq, mi,
|
||||
|
Loading…
Reference in New Issue
Block a user