Fixup after list changes.

This commit is contained in:
Kim Woelders 2013-09-08 22:11:04 +02:00
parent 434c042c03
commit a6c5d24810
1 changed files with 2 additions and 2 deletions

View File

@ -446,9 +446,9 @@ ButtonDragEnd(Button * b)
void
ButtonsForeach(int id, Desk * dsk, void (*func) (Button * b))
{
Button *b;
Button *b, *tmp;
LIST_FOR_EACH(Button, &button_list, b)
LIST_FOR_EACH_SAFE(Button, &button_list, b, tmp)
{
if (id >= 0 && id != b->id)
continue;