--- a/eric6/Plugins/VcsPlugins/vcsGit/GitSubmoduleAddDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitSubmoduleAddDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -64,7 +64,8 @@ Utilities.fromNativeSeparators(ipath) + "/", ] - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(False) msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height()) @@ -92,7 +93,8 @@ else: vcsUrlEnable = True - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(enable) self.submoduleUrlButton.setEnabled(vcsUrlEnable) @pyqtSlot()