/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 olive/add.py

  • Committer: Jelmer Vernooij
  • Date: 2006-09-27 21:05:19 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927210519-7bc2662211808af5
Bunch of other small updates, add more items to 
the TODO list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
            if filename is None:
65
65
                error_dialog(_('No file was selected'),
66
66
                                         _('Please select a file from the list,\nor choose the other option.'))
67
 
                self.comm.set_busy(self.window, False)
68
67
                return
69
68
            
70
69
            try:
72
71
            except errors.NotBranchError:
73
72
                error_dialog(_('Directory is not a branch'),
74
73
                                         _('You can perform this action only in a branch.'))
75
 
                self.comm.set_busy(self.window, False)
76
74
                return
77
75
        elif radio_unknown.get_active():
78
76
            # Add unknown files recursively
81
79
            except errors.NotBranchError:
82
80
                error_dialog(_('Directory is not a branch'),
83
81
                                         _('You can perform this action only in a branch.'))
84
 
                self.comm.set_busy(self.window, False)
85
82
                return
86
 
        else:
87
 
            # This should really never happen.
88
 
            pass
89
83
        
90
84
        self.close()
91
 
        self.comm.refresh_right()
92
85
    
93
86
    def close(self, widget=None):
94
87
        self.window.destroy()