/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to commit.py

  • Committer: Curtis Hovey
  • Date: 2012-01-22 23:40:49 UTC
  • mfrom: (769.2.3 precise-commit-1)
  • Revision ID: sinzui.is@verizon.net-20120122234049-moij34kku1iiuowy
Do not assume the treeselection exisits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
568
568
 
569
569
    def _on_treeview_files_cursor_changed(self, treeview):
570
570
        treeselection = treeview.get_selection()
 
571
        if treeselection is None:
 
572
            # The treeview was probably destroyed as the dialog closes.
 
573
            return
571
574
        (model, selection) = treeselection.get_selected()
572
575
 
573
576
        if selection is not None: