GTableView: Ignore double-clicks that hit the header section.

This commit is contained in:
Andreas Kling 2019-04-26 23:13:05 +02:00
parent 8f81a3f9dd
commit 8bce4b3f42
Notes: sideshowbarker 2024-07-19 14:34:33 +09:00

View File

@ -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());