diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-22 21:32:34 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-22 21:32:34 +0000 |
commit | a6f9773c358dd7d091ff64cbda504ab8d8066dd3 (patch) | |
tree | 226e23c4656957e908623ccda9d3d1c50240a0b4 /src/ui | |
parent | bbb43d1c15f2858573f5abb595aa62f8224e4d76 (diff) |
full trading support for networked games
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/listview.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |