IrcNetworkEditDialog:fixed an issue causing an exception. eric7

Sun, 30 May 2021 11:22:26 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 30 May 2021 11:22:26 +0200
branch
eric7
changeset 8390
36ebb6535512
parent 8389
1298e767879c
child 8391
79d844b3b8df

IrcNetworkEditDialog:fixed an issue causing an exception.

eric7/Network/IRC/IrcNetworkEditDialog.py file | annotate | diff | comparison | revisions
--- 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