--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgArchiveDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgArchiveDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -78,7 +78,8 @@ self.subReposCheckBox.setEnabled(vcs.hasSubrepositories()) - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(False) self.__projectPath = ( vcs.getPlugin().getProjectHelper().getProject().getProjectPath() @@ -94,7 +95,8 @@ @param archive name of the archive (string) """ - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(archive != "") + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(archive != "") @pyqtSlot(int) def on_typeComboBox_activated(self, index):