1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 03:25:07 +00:00

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

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 {};