Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

hgemail: don't close dialog if canceled/aborted to send email

Changeset 9476c0faabc1

Parent e484a3d6d893

by Yuya Nishihara

Changes to one file · Browse files at 9476c0faabc1 Showing diff from parent e484a3d6d893 Diff from another changeset...

 
187
188
189
190
 
 
191
192
193
194
195
196
197
198
199
 
187
188
189
 
190
191
192
193
194
195
 
 
196
197
198
@@ -187,13 +187,12 @@
  cmd = cmdui.Dialog(['email'] + cmdargs(opts) + list(self._revs),   parent=self)   cmd.setWindowTitle(_('Sending Email')) - cmd.exec_() + if cmd.exec_(): + super(EmailDialog, self).accept()   finally:   if 'desc' in opts:   os.unlink(opts['desc']) # TODO: don't use tempfile   - super(EmailDialog, self).accept() # TODO: if success -   def _initintrobox(self):   self._qui.intro_box.hide() # hidden by default   if self._introrequired():