Commits

Adrian Buehlmann committed 36a2bd0

hgemail: do not close main dialog when emails sent

I often do a test send to myself before sending a patch
to the "real" recipient, so I would like to decide myself
when the main email dialog window should be closed.

This is especially important when I've written an intro.
If the dialog is closed on send implicitly, I do have to
enter the intro text again for the real send.

  • Participants
  • Parent commits 245bbfc
  • Branches stable
  • Tags 1.9.3

Comments (0)

Files changed (1)

tortoisehg/hgqt/hgemail.py

             cmd.finished.connect(cmd.deleteLater)
             if cmd.exec_():
                 self._writehistory()
-                super(EmailDialog, self).accept()
         finally:
             if 'desc' in opts:
                 os.unlink(opts['desc'])  # TODO: don't use tempfile