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:
parent
6f5f9e6567
commit
d0813be65a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue