LibGUI: Ignore right-clicks on HeaderViews

This prevents right-clicking a column header from making it appear
depressed right before the context menu is shown.
This commit is contained in:
Andreas Kling 2021-04-10 16:50:43 +02:00
commit d0813be65a
Notes: sideshowbarker 2024-07-18 20:35:19 +09:00

View file

@ -133,6 +133,9 @@ void HeaderView::doubleclick_event(MouseEvent& event)
void HeaderView::mousedown_event(MouseEvent& event)
{
if (event.button() != GUI::MouseButton::Left)
return;
if (!model())
return;