diff -r b918c6c2736b -r a671918232f3 src/eric7/Plugins/VcsPlugins/vcsGit/GitWorktreeDialog.py --- a/src/eric7/Plugins/VcsPlugins/vcsGit/GitWorktreeDialog.py Fri Oct 25 09:47:48 2024 +0200 +++ b/src/eric7/Plugins/VcsPlugins/vcsGit/GitWorktreeDialog.py Fri Oct 25 17:58:59 2024 +0200 @@ -498,6 +498,7 @@ parentDirectory, self.__vcs.gitGetTagsList(self.__repodir), self.__vcs.gitGetBranchesList(self.__repodir), + parent=self, ) if dlg.exec() == QDialog.DialogCode.Accepted: params = dlg.getParameters() @@ -516,7 +517,7 @@ if params["commit"]: args.append(params["commit"]) - dlg = GitDialog(self.tr("Add Worktree"), self.__vcs) + dlg = GitDialog(self.tr("Add Worktree"), self.__vcs, parent=self) started = dlg.startProcess(args, workingDir=self.__repodir) if started: dlg.exec() @@ -788,7 +789,7 @@ else: parentDirectory = "" - dlg = GitWorktreePathsDialog(parentDirectory, self) + dlg = GitWorktreePathsDialog(parentDirectory, parent=self) if dlg.exec() == QDialog.DialogCode.Accepted: paths = dlg.getPathsList()