--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgImportDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgImportDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -37,7 +37,8 @@ self.secretCheckBox.setEnabled(vcs.version >= (5, 3, 0)) - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(False) self.__initDateTime = QDateTime.currentDateTime() self.dateEdit.setDateTime(self.__initDateTime) @@ -50,7 +51,8 @@ if self.patchFilePicker.text() == "": enabled = False - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) @pyqtSlot(str) def on_patchFilePicker_textChanged(self, txt):