mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +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;
|
return;
|
||||||
auto& model = *this->model();
|
auto& model = *this->model();
|
||||||
if (event.button() == GMouseButton::Left) {
|
if (event.button() == GMouseButton::Left) {
|
||||||
mousedown_event(event);
|
if (event.y() < header_height())
|
||||||
|
return;
|
||||||
if (model.selected_index().is_valid()) {
|
if (model.selected_index().is_valid()) {
|
||||||
if (is_editable())
|
if (is_editable())
|
||||||
begin_editing(model.selected_index());
|
begin_editing(model.selected_index());
|
||||||
|
|||||||
Reference in New Issue
Block a user