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.
This commit is contained in:
Andreas Kling 2019-11-09 11:57:08 +01:00
parent ce9b9c129d
commit 29b2117564
Notes: sideshowbarker 2024-07-19 11:18:52 +09:00

View file

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