--- a/eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesRenamePatchDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesRenamePatchDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -32,7 +32,8 @@ self.tr("Current Patch ({0})").format(currentPatch)) self.nameCombo.addItems([""] + patchesList) - 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()) @@ -45,7 +46,8 @@ if self.namedButton.isChecked(): enable = enable and self.nameCombo.currentText() != "" - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(enable) @pyqtSlot(str) def on_nameEdit_textChanged(self, txt): @@ -65,12 +67,13 @@ """ self.__updateUI() - @pyqtSlot(str) - def on_nameCombo_currentIndexChanged(self, txt): + @pyqtSlot(int) + def on_nameCombo_currentIndexChanged(self, index): """ Private slot to handle changes of the selected patch name. - @param txt selected patch name (string) + @param index current index + @type int """ self.__updateUI()