--- a/eric6/Plugins/VcsPlugins/vcsGit/GitChangeRemoteUrlDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitChangeRemoteUrlDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -35,11 +35,12 @@ self.__userInfo = url.userInfo() self.nameEdit.setText(remoteName) - self.urlEdit.setText(url.toString(QUrl.RemoveUserInfo)) + self.urlEdit.setText( + url.toString(QUrl.UrlFormattingOption.RemoveUserInfo)) self.__updateOK() - self.newUrlEdit.setFocus(Qt.OtherFocusReason) + self.newUrlEdit.setFocus(Qt.FocusReason.OtherFocusReason) msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height()) @@ -48,7 +49,7 @@ """ Private method to update the status of the OK button. """ - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( + self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( bool(self.newUrlEdit.text()) )