eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesRenamePatchDialog.py

branch
maintenance
changeset 8176
31965986ecd1
parent 8143
2c730d5fd177
child 8218
7c09585bd960
diff -r e01ae92db699 -r 31965986ecd1 eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesRenamePatchDialog.py
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesRenamePatchDialog.py	Sat Mar 06 10:00:52 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesRenamePatchDialog.py	Sun Mar 28 15:00:11 2021 +0200
@@ -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()
     

eric ide

mercurial