Comment 9 for bug 964433

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

So it seems its the extends loading that does not take into account what items it needs:

=== modified file 'softwarecenter/ui/gtk3/models/appstore2.py'
--- softwarecenter/ui/gtk3/models/appstore2.py 2012-03-16 10:44:05 +0000
+++ softwarecenter/ui/gtk3/models/appstore2.py 2012-03-29 07:37:10 +0000
@@ -414,7 +414,7 @@
         if n_matches == 0:
             return

- extent = min(self.LOAD_INITIAL, n_matches)
+ extent = max(self.LOAD_INITIAL, n_matches)

         with ExecutionTime("store.append_initial"):
             for doc in [m.document for m in matches][:extent]:

Fixes it as well