From c1b4e8aef0a23c8e704758c9259acdc310aa8949 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 23 Dec 2019 00:13:08 +0100 Subject: [PATCH] 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. --- Libraries/LibGUI/GTreeView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibGUI/GTreeView.cpp b/Libraries/LibGUI/GTreeView.cpp index a579fe253f..e0c3283245 100644 --- a/Libraries/LibGUI/GTreeView.cpp +++ b/Libraries/LibGUI/GTreeView.cpp @@ -71,6 +71,8 @@ void GTreeView::doubleclick_event(GMouseEvent& event) if (model.row_count(index)) toggle_index(index); + else + activate(index); } }