/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 20:30:59 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927203059-85792ae0a81db524
Bunch of small fixes, cleanups and simplifications.

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)
67
68
                return
68
69
            
69
70
            try:
71
72
            except errors.NotBranchError:
72
73
                error_dialog(_('Directory is not a branch'),
73
74
                                         _('You can perform this action only in a branch.'))
 
75
                self.comm.set_busy(self.window, False)
74
76
                return
75
77
        elif radio_unknown.get_active():
76
78
            # Add unknown files recursively
79
81
            except errors.NotBranchError:
80
82
                error_dialog(_('Directory is not a branch'),
81
83
                                         _('You can perform this action only in a branch.'))
 
84
                self.comm.set_busy(self.window, False)
82
85
                return
 
86
        else:
 
87
            # This should really never happen.
 
88
            pass
83
89
        
84
90
        self.close()
 
91
        self.comm.refresh_right()
85
92
    
86
93
    def close(self, widget=None):
87
94
        self.window.destroy()