--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/closehead.py Fri Oct 25 09:47:48 2024 +0200 +++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/closehead.py Fri Oct 25 17:58:59 2024 +0200 @@ -18,14 +18,16 @@ Class implementing the strip extension interface. """ - def __init__(self, vcs): + def __init__(self, vcs, ui=None): """ Constructor @param vcs reference to the Mercurial vcs object @type Hg + @param ui reference to a UI widget (defaults to None) + @type QWidget """ - super().__init__(vcs) + super().__init__(vcs, ui=ui) def hgCloseheads(self, revisions=None): """ @@ -38,7 +40,7 @@ message = "" if not revisions: - dlg = HgCloseHeadSelectionDialog(self.vcs) + dlg = HgCloseHeadSelectionDialog(self.vcs, parent=self.ui) if dlg.exec() == QDialog.DialogCode.Accepted: revisions, message = dlg.getData() @@ -58,7 +60,7 @@ for revision in revisions: args += ["--rev", revision] - dia = HgDialog(self.tr("Closing Heads"), self.vcs) + dia = HgDialog(self.tr("Closing Heads"), hg=self.vcs, parent=self.ui) res = dia.startProcess(args) if res: dia.exec()