mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 19:15:07 +00:00
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:
parent
ce9b9c129d
commit
29b2117564
1 changed files with 1 additions and 0 deletions
|
@ -248,6 +248,7 @@ void GTreeView::did_update_model()
|
||||||
|
|
||||||
void GTreeView::did_update_selection()
|
void GTreeView::did_update_selection()
|
||||||
{
|
{
|
||||||
|
GAbstractView::did_update_selection();
|
||||||
ASSERT(model());
|
ASSERT(model());
|
||||||
auto index = selection().first();
|
auto index = selection().first();
|
||||||
if (!index.is_valid())
|
if (!index.is_valid())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue