eric6/Network/IRC/IrcNetworkWidget.py

changeset 8143
2c730d5fd177
parent 7946
6901746220fc
child 8176
31965986ecd1
child 8218
7c09585bd960
--- a/eric6/Network/IRC/IrcNetworkWidget.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Network/IRC/IrcNetworkWidget.py	Tue Mar 02 17:17:09 2021 +0100
@@ -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