mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 03:57:35 +00:00
GTableView: Ignore double-clicks that hit the header section.
This commit is contained in:
parent
8f81a3f9dd
commit
8bce4b3f42
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue