Pārlūkot izejas kodu

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.
Andreas Kling 5 gadi atpakaļ
vecāks
revīzija
29b2117564
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      Libraries/LibGUI/GTreeView.cpp

+ 1 - 0
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())