Comment 2 for bug 577540

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

Thanks for the bugreport.

I can reproduce this here, Olivier hinted that something like this:
 === modified file 'softwarecenter/view/channelpane.py'
--- softwarecenter/view/channelpane.py 2010-04-27 14:11:04 +0000
+++ softwarecenter/view/channelpane.py 2010-05-09 22:37:25 +0000
@@ -101,6 +101,9 @@
         if old_model is not None:
             old_model.active = False
             self.app_view.set_model(None)
+ print "clear"
+ old_model.clear()
+ del old_model
         gobject.idle_add(self._make_new_model, query, self.refresh_seq_nr)
         return False

should fix it (for all the places where we use this contruct). And without the "print" ;)

We should also SRU it.

Thanks,
 Michael