Prevent sort options being duplicated

This commit is contained in:
drdev
2014-07-25 23:11:20 +00:00
parent fb7a14177f
commit cc30562986

View File

@@ -183,6 +183,10 @@ public abstract class ItemManager<T extends InventoryItem> extends FContainer im
}); });
sortCols.clear(); sortCols.clear();
if (cbxSortOptions != null) {
cbxSortOptions.setChangedHandler(null);
cbxSortOptions.removeAllItems();
}
int modelIndex = 0; int modelIndex = 0;
for (final ItemColumn col : cols) { for (final ItemColumn col : cols) {