From 52bd0792d15e9a814cd38cf77b26784003b8569f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 29 Jan 2012 15:16:17 +0000 Subject: --- src/client/inventorylistview.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/client/inventorylistview.cc') diff --git a/src/client/inventorylistview.cc b/src/client/inventorylistview.cc index 5b1dbde..ed3419d 100644 --- a/src/client/inventorylistview.cc +++ b/src/client/inventorylistview.cc @@ -22,15 +22,18 @@ InventoryListView::InventoryListView(ui::Widget *parent) : ui::ListView (parent) listview_infotimestamp = 0; listview_showempty = false; - set_inventory(0, 0); + listview_timestamp = 0; + listview_infotimestamp = 0; + listview_inventory = 0; } -InventoryListView::~InventoryListView() { +InventoryListView::~InventoryListView() +{ } void InventoryListView::set_inventory(core::Inventory *inventory, core::InfoType *infotype) { - remove_children(); + ListView::clear(); deselect(); -- cgit v1.2.3