--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgUserConfigHostFingerprintDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgUserConfigHostFingerprintDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -86,7 +86,8 @@ HgUserConfigHostFingerprintDialog.fingerprintLength[ hashType]) - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) @pyqtSlot(str) def on_hostEdit_textChanged(self, txt): @@ -98,13 +99,13 @@ """ self.__updateOkButton() - @pyqtSlot(str) - def on_hashComboBox_currentIndexChanged(self, txt): + @pyqtSlot(int) + def on_hashComboBox_currentIndexChanged(self, index): """ Private slot to handle changes of the hash combo. - @param txt current text - @type str + @param index current index + @type int """ self.__updateOkButton()