~osomon/software-center/button_release

« back to all changes in this revision

Viewing changes to softwarecenter/view/installedpane.py

  • Committer: Michael Vogt
  • Date: 2010-04-16 19:33:38 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100416193338-zuqek9avwhi34b31
* softwarecenter/view/availablepane.py, 
  softwarecenter/view/channelpane.py,
  softwarecenter/view/installedpane.py:
  - only send size information signals if we actually have a model
    (LP: #564756)
  

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        if self.notebook.get_current_page() == self.PAGE_APP_DETAILS:
152
152
            return ""
153
153
        # otherwise, show status based on search or not
154
 
        length = len(self.app_view.get_model())
 
154
        model = self.app_view.get_model()
 
155
        if not model:
 
156
            return ""
 
157
        length = len(model)
155
158
        if len(self.searchentry.get_text()) > 0:
156
159
            return gettext.ngettext("%s matching item",
157
160
                                    "%s matching items",