eric7/Network/IRC/IrcNetworkEditDialog.py

branch
eric7
changeset 8390
36ebb6535512
parent 8358
144a6b854f70
child 8391
79d844b3b8df
--- a/eric7/Network/IRC/IrcNetworkEditDialog.py	Sat May 29 17:14:43 2021 +0200
+++ b/eric7/Network/IRC/IrcNetworkEditDialog.py	Sun May 30 11:22:26 2021 +0200
@@ -115,16 +115,15 @@
         self.identityCombo.setCurrentIndex(index)
     
     @pyqtSlot(int)
-    def on_identityCombo_currentIndexChanged(self, index):
+    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