Sfoglia il codice sorgente

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 anni fa
parent
commit
29b2117564
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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()
 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())