--- a/src/eric7/Plugins/VcsPlugins/vcsPySvn/SvnDialogMixin.py Fri Oct 25 09:47:48 2024 +0200 +++ b/src/eric7/Plugins/VcsPlugins/vcsPySvn/SvnDialogMixin.py Fri Oct 25 17:58:59 2024 +0200 @@ -72,8 +72,8 @@ from .SvnLoginDialog import SvnLoginDialog with EricOverridenCursor(): - parent = isinstance(self, QWidget) and self or None - dlg = SvnLoginDialog(realm, username, may_save, parent) + parent = self if isinstance(self, QWidget) else None + dlg = SvnLoginDialog(realm, username, may_save, parent=parent) res = dlg.exec() if res == QDialog.DialogCode.Accepted: @@ -98,7 +98,7 @@ from eric7.EricWidgets import EricMessageBox with EricOverridenCursor(): - parent = isinstance(self, QWidget) and self or None + parent = self if isinstance(self, QWidget) else None msgBox = EricMessageBox.EricMessageBox( EricMessageBox.Question, self.tr("Subversion SSL Server Certificate"), @@ -152,7 +152,8 @@ return True, self.logMessage else: # call CommitDialog and get message from there - dlg = SvnCommitDialog(self) + parent = self if isinstance(self, QWidget) else None + dlg = SvnCommitDialog(self, parent=parent) if dlg.exec() == QDialog.DialogCode.Accepted: msg = dlg.logMessage() if msg: