eric6/Plugins/VcsPlugins/vcsSubversion/SvnUrlSelectionDialog.py

branch
maintenance
changeset 8176
31965986ecd1
parent 8143
2c730d5fd177
child 8218
7c09585bd960
--- a/eric6/Plugins/VcsPlugins/vcsSubversion/SvnUrlSelectionDialog.py	Sat Mar 06 10:00:52 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsSubversion/SvnUrlSelectionDialog.py	Sun Mar 28 15:00:11 2021 +0200
@@ -121,22 +121,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