From a6f9773c358dd7d091ff64cbda504ab8d8066dd3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 22 Sep 2010 21:32:34 +0000 Subject: full trading support for networked games --- src/ui/listview.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui') diff --git a/src/ui/listview.cc b/src/ui/listview.cc index ced0dd6..fc75806 100644 --- a/src/ui/listview.cc +++ b/src/ui/listview.cc @@ -75,7 +75,7 @@ void ListView::deselect() void ListView::select(ListItem *item) { - if (is_child(item)) { + if (!item || is_child(item)) { listview_selecteditem = item; } } @@ -94,7 +94,7 @@ bool ListView::on_emit(Widget *sender, const Event event, void *data) return true; } - return ui::Widget::on_emit(sender, event, data); + return false; } } -- cgit v1.2.3