mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:05:07 +00:00
LibGUI: Activate GTreeView indexes when double clicking leaf nodes
This seems pretty sensible to me. I'm unsure if we should activate nodes that have children, or just toggle them.
This commit is contained in:
parent
a12c2df43f
commit
c1b4e8aef0
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ void GTreeView::doubleclick_event(GMouseEvent& event)
|
|||
|
||||
if (model.row_count(index))
|
||||
toggle_index(index);
|
||||
else
|
||||
activate(index);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue