eric6/Network/IRC/IrcNetworkEditDialog.py

changeset 8392
d6d08deb3570
parent 8234
fcb6b4b96274
--- a/eric6/Network/IRC/IrcNetworkEditDialog.py	Tue May 25 17:37:59 2021 +0200
+++ b/eric6/Network/IRC/IrcNetworkEditDialog.py	Sun May 30 11:25:08 2021 +0200
@@ -114,17 +114,16 @@
             index = 0
         self.identityCombo.setCurrentIndex(index)
     
-    @pyqtSlot(int)
-    def on_identityCombo_currentIndexChanged(self, index):
+    @pyqtSlot(str)
+    def on_identityCombo_currentTextChanged(self, identity):
         """
         Private slot to handle the selection of an identity.
         
-        @param index index of the selected entry
-        @type int
+        @param identity selected identity
+        @type str
         """
         from .IrcNetworkManager import IrcIdentity
         
-        identity = self.identitiesCombo.itemText(index)
         if identity == IrcIdentity.DefaultIdentityDisplay:
             identity = IrcIdentity.DefaultIdentityName
         self.__network.setIdentityName(identity)

eric ide

mercurial