~mvo/software-center/pygi-properties-fixes

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/widgets/apptreeview.py

  • Committer: Gary Lasker
  • Date: 2012-03-30 06:56:03 UTC
  • mfrom: (2929.1.1 trunk)
  • Revision ID: gary.lasker@canonical.com-20120330065603-qtjslquk5fq5w4tr
* lp:~mvo/software-center/lp966879:
  - fix for crashes in the installed view treeview (LP: #966879,
    LP: #950899)

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
                except:
154
154
                    msg = ("apptreeview.expand_path: Supplied 'old' "
155
155
                           "path is an invalid tree path: '%s'" % old)
156
 
                    logging.debug(msg)
 
156
                    logging.warn(msg)
157
157
 
158
158
        if path == None:
159
159
            return
485
485
                            path)
486
486
 
487
487
    def _cell_data_func_cb(self, col, cell, model, it, user_data):
488
 
 
489
488
        path = model.get_path(it)
490
489
 
491
 
        # this will give us the right underlying model regardless if its
492
 
        # a TreeModelFilter, a AppTreeStore or a AppListStore
493
 
        model = self.appmodel
494
 
 
495
490
        # this will pre-load data *only* on a AppListStore, it has
496
491
        # no effect with a AppTreeStore
497
492
        if model[path][0] is None: