summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-14 00:21:51 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-14 00:21:51 +0100
commit4d406d5c6d46cee06f7551df5774eb1ecaae7cda (patch)
treef7cc4141f651b3945eb7efcfc9eb9b36f2adeaaa
parent561718d88b5e0f3e443b7555ec567ec75499192e (diff)
downloadserenity-4d406d5c6d46cee06f7551df5774eb1ecaae7cda.zip
LibGUI: GAbstractColumnModel should never claim to hit a toggle box
Only GTreeView can hit a toggle box in index_at_event_position().
-rw-r--r--Libraries/LibGUI/GAbstractColumnView.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GAbstractColumnView.cpp b/Libraries/LibGUI/GAbstractColumnView.cpp
index 5ae862a55d..28b52692da 100644
--- a/Libraries/LibGUI/GAbstractColumnView.cpp
+++ b/Libraries/LibGUI/GAbstractColumnView.cpp
@@ -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 {};