Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/listview.cc4
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;
}
}