From 29b2117564a2bd29b3841122c1b6a835f7a7c6d6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 9 Nov 2019 11:57:08 +0100 Subject: [PATCH] LibGUI: Make GTreeView fire the on_selection hook GTreeView was forgetting to call to base in did_update_selection(). This prevented GAbstractView from firing the on_selection hook and we ended up with only the on_selection_change hook firing. --- Libraries/LibGUI/GTreeView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibGUI/GTreeView.cpp b/Libraries/LibGUI/GTreeView.cpp index 33b665e768..e5a3fea5b2 100644 --- a/Libraries/LibGUI/GTreeView.cpp +++ b/Libraries/LibGUI/GTreeView.cpp @@ -248,6 +248,7 @@ void GTreeView::did_update_model() void GTreeView::did_update_selection() { + GAbstractView::did_update_selection(); ASSERT(model()); auto index = selection().first(); if (!index.is_valid())