diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/inventorylistview.cc | 9 | ||||
-rw-r--r-- | src/client/savegamemenu.cc | 1 |
2 files changed, 6 insertions, 4 deletions
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(); diff --git a/src/client/savegamemenu.cc b/src/client/savegamemenu.cc index a0da087..e39d59b 100644 --- a/src/client/savegamemenu.cc +++ b/src/client/savegamemenu.cc @@ -284,7 +284,6 @@ void SaveGameMenu::hide() void SaveGameMenu::show() { Window::show(); - event_resize(); refresh(); } |