Comment 7 for bug 38397

Revision history for this message
Michael Vogt (mvo) wrote :

After some digging into that, I found that the problem is that the internal gtkpkglist.cc list model code in synaptic triggers the problem. Here is what happens:

1. the list-model has a size of the number of displayed packages (all=20.000)
2. when search is clicked with exaile, the model changes size to just 2
3. then on clicking back to "all" gtk_tree_view_set_model is called to force a global "refresh". the internal cleanup code in "gtk_tree_view_set_model" will then ask the (old) model for its current size and cleanup all nodes. because the model is really something that generates the information dynamically the new size for all is returned
4. that triggers the problem

I added code now that makes sure that the model is set to "NULL" before the new model is set. that will fix the issue.