mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03: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: https://github.com/SerenityOS/serenity/commit/8bce4b3f424
@ -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…
Reference in New Issue
Block a user