/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 16:16:04 UTC
  • mto: This revision was merged to the branch mainline in revision 771.
  • Revision ID: sinzui.is@verizon.net-20120122161604-5a8qbeks1oq8uxxd
Added guard to avoid accessing a non-existent treeselection.

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: