~zyga/checkbox/fix-1442175

« back to all changes in this revision

Viewing changes to checkbox-ng/checkbox_ng/ui.py

  • Committer: Daniel Manrique
  • Author(s): Zygmunt Krynicki
  • Date: 2015-04-14 12:38:35 UTC
  • mfrom: (3683.1.1 launchpad/fix-1443901)
  • Revision ID: daniel_manrique-20150414123835-z1d15100uaaki5eu
"automatic merge of lp:~zyga/checkbox/fix-1443901/ by tarmac [r=kissiel][bug=1443901][author=zyga]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
        Expand/collapse a node
247
247
        """
248
248
        node, is_job = self.tree.get_node_by_index(self.top + self.highlight)
249
 
        if not is_job:
 
249
        if node is not None and not is_job:
250
250
            node.expanded = not(node.expanded)
251
251
 
252
252
    def _scroll(self, direction):