mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
GTableView: Ignore double-clicks that hit the header section.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user