eric6/Plugins/VcsPlugins/vcsPySvn/SvnUrlSelectionDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
--- a/eric6/Plugins/VcsPlugins/vcsPySvn/SvnUrlSelectionDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsPySvn/SvnUrlSelectionDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -123,22 +123,26 @@
             labelCombo.addItems(sorted(self.branchesList))
             labelCombo.setEnabled(True)
         
-    @pyqtSlot(str)
-    def on_typeCombo1_currentIndexChanged(self, type_):
+    @pyqtSlot(int)
+    def on_typeCombo1_currentIndexChanged(self, index):
         """
         Private slot called when the selected type was changed.
         
-        @param type_ selected type (string)
+        @param index index of the current item
+        @type int
         """
+        type_ = self.typeCombo1.itemText(index)
         self.__changeLabelCombo(self.labelCombo1, type_)
         
-    @pyqtSlot(str)
-    def on_typeCombo2_currentIndexChanged(self, type_):
+    @pyqtSlot(int)
+    def on_typeCombo2_currentIndexChanged(self, index):
         """
         Private slot called when the selected type was changed.
         
-        @param type_ selected type (string)
+        @param index index of the current item
+        @type int
         """
+        type_ = self.typeCombo2.itemText(index)
         self.__changeLabelCombo(self.labelCombo2, type_)
         
     def getURLs(self):

eric ide

mercurial