1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

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
parent 6f5f9e6567
commit d0813be65a

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;