mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03: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:
parent
561718d88b
commit
4d406d5c6d
Notes:
sideshowbarker
2024-07-19 10:52:12 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4d406d5c6d4
@ -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 {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user