Andre Rudlaff  committed b4a4dc9

email: preview is empty if patchbomb extension is not loaded

When trying to export a patch without the patchbomb extension loaded,
the preview tab is always empty. The eMail can be sent correctly as the
extension gets loaded when pressing the 'send email' button.
Now the extension is loaded when creating the dialog, to allow users to
preview the patch they gonna send.

  • Participants
  • Parent commits 775687e
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

         QShortcut(QKeySequence('CTRL+Return'), self, self.accept)
         QShortcut(QKeySequence('Ctrl+Enter'), self, self.accept)
+        hglib.loadextension(self._ui, 'patchbomb')
     def closeEvent(self, event):
             getattr(self._qui, e).editTextChanged.connect(self._updateforms)
     def accept(self):
-        hglib.loadextension(self._ui, 'patchbomb')
         opts = self._patchbombopts()
         cmdline = hglib.buildcmdargs('email', **opts)
         cmd = cmdui.CmdSessionDialog(self)