eric6/Network/IRC/IrcNetworkWidget.py

branch
maintenance
changeset 8176
31965986ecd1
parent 8043
0acf98cd089a
parent 8143
2c730d5fd177
child 8273
698ae46f40a4
--- a/eric6/Network/IRC/IrcNetworkWidget.py	Sat Mar 06 10:00:52 2021 +0100
+++ b/eric6/Network/IRC/IrcNetworkWidget.py	Sun Mar 28 15:00:11 2021 +0200
@@ -221,13 +221,15 @@
         channel = self.channelCombo.currentText()
         self.joinChannel.emit(channel)
     
-    @pyqtSlot(str)
-    def on_networkCombo_currentIndexChanged(self, networkName):
+    @pyqtSlot(int)
+    def on_networkCombo_currentIndexChanged(self, index):
         """
         Private slot to handle selections of a network.
         
-        @param networkName selected network name (string)
+        @param index index of the selected entry
+        @type int
         """
+        networkName = self.networkCombo.itemText(index)
         network = self.__manager.getNetwork(networkName)
         self.nickCombo.clear()
         self.channelCombo.clear()
@@ -253,13 +255,13 @@
         network = self.__manager.getNetwork(networkName)
         return network.getChannels()
     
-    @pyqtSlot(str)
+    @pyqtSlot(int)
     @pyqtSlot()
-    def on_nickCombo_currentIndexChanged(self, nick=""):
+    def on_nickCombo_currentIndexChanged(self, nick=0):
         """
         Private slot to use another nick name.
         
-        @param nick nick name to use (string)
+        @param nick index of the selected nick name (unused)
         """
         if self.__connected:
             self.nickChanged.emit(self.nickCombo.currentText())

eric ide

mercurial