mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +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: https://github.com/SerenityOS/serenity/commit/29b2117564a
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue