mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
GTableView: Ignore double-clicks that hit the header section.
This commit is contained in:
parent
8f81a3f9dd
commit
8bce4b3f42
Notes:
sideshowbarker
2024-07-19 14:34:33 +09:00
Author: https://github.com/awesomekling
Commit: 8bce4b3f42
1 changed files with 2 additions and 1 deletions
|
@ -320,7 +320,8 @@ void GTableView::doubleclick_event(GMouseEvent& event)
|
|||
return;
|
||||
auto& model = *this->model();
|
||||
if (event.button() == GMouseButton::Left) {
|
||||
mousedown_event(event);
|
||||
if (event.y() < header_height())
|
||||
return;
|
||||
if (model.selected_index().is_valid()) {
|
||||
if (is_editable())
|
||||
begin_editing(model.selected_index());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue