From fc4809e41bc5694231046eb2fd4c324c4daba13f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 18 Sep 2010 13:25:37 +0000 Subject: cosmetic updates in engine list functions, trade menu updates --- src/client/inventorylistview.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client/inventorylistview.cc') diff --git a/src/client/inventorylistview.cc b/src/client/inventorylistview.cc index 656adfb..1b46fd0 100644 --- a/src/client/inventorylistview.cc +++ b/src/client/inventorylistview.cc @@ -14,6 +14,9 @@ InventoryListView::InventoryListView(ui::Widget *parent) : ui::ListView (parent) set_inventory(0, 0); } +InventoryListView::~InventoryListView() { +} + void InventoryListView::set_inventory(core::Inventory *inventory, core::InfoType *info_type) { remove_children(); @@ -22,6 +25,9 @@ void InventoryListView::set_inventory(core::Inventory *inventory, core::InfoType return; } + // TODO scan the inventories and request updated infos + // update when necessary + for (core::Inventory::Items::const_iterator it = inventory->items().begin(); it != inventory->items().end(); it++) { core::Item *item = (*it); -- cgit v1.2.3