LibGUI: GAbstractColumnModel should never claim to hit a toggle box

Only GTreeView can hit a toggle box in index_at_event_position().
This commit is contained in:
Andreas Kling 2019-12-14 00:21:51 +01:00
parent 561718d88b
commit 4d406d5c6d
Notes: sideshowbarker 2024-07-19 10:52:12 +09:00

View File

@ -346,8 +346,9 @@ void GAbstractColumnView::mousedown_event(GMouseEvent& event)
selection().set(index);
}
GModelIndex GAbstractColumnView::index_at_event_position(const Point& position, bool&) const
GModelIndex GAbstractColumnView::index_at_event_position(const Point& position, bool& is_toggle) const
{
is_toggle = false;
if (!model())
return {};