mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +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
Notes:
sideshowbarker
2024-07-19 11:18:52 +09:00
Author: https://github.com/awesomekling
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