Comment 7 for bug 563524

Michael Vogt (mvo) wrote :

I can also reproduce it, the issue is a async race, the page is set to the details but because we do searches more async now we get a "search-terms-changed" signal afterwards. One possible fix is this:

=== modified file 'softwarecenter/view/availablepane.py'
--- softwarecenter/view/availablepane.py 2010-04-16 20:30:48 +0000
+++ softwarecenter/view/availablepane.py 2010-04-16 21:18:44 +0000
@@ -340,6 +340,9 @@
         """callback when the search entry widget changes"""
         logging.debug("on_search_terms_changed: %s" % new_text)

+ if self.notebook.get_current_page() == self.PAGE_APP_DETAILS:
+ return
+
         # yeah for special cases - as discussed on irc, mpt
         # wants this to return to the category screen *if*
         # we are searching but we are not in any category