This is actually better without the count check.

This commit is contained in:
Jari Vetoniemi 2014-04-11 00:40:21 +03:00
parent 590c5d9f85
commit dfdb810099

View File

@ -488,12 +488,10 @@ void bmMenuFilter(bmMenu *menu)
_bmItemListSetItemsNoCopy(&menu->filtered, filtered, count);
menu->index = selected;
if (count) {
if (menu->oldFilter)
free(menu->oldFilter);
if (menu->oldFilter)
free(menu->oldFilter);
menu->oldFilter = _bmStrdup(menu->filter);
}
menu->oldFilter = _bmStrdup(menu->filter);
}
/**