eric6/Network/IRC/IrcNetworkListDialog.py

changeset 7255
d595f6f9cbf8
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7254:f00d825fbdb3 7255:d595f6f9cbf8
79 network = self.__manager.getNetwork(networkName) 79 network = self.__manager.getNetwork(networkName)
80 server = network.getServer() 80 server = network.getServer()
81 identityName = network.getIdentityName() 81 identityName = network.getIdentityName()
82 if identityName == IrcIdentity.DefaultIdentityName: 82 if identityName == IrcIdentity.DefaultIdentityName:
83 identityName = IrcIdentity.DefaultIdentityDisplay 83 identityName = IrcIdentity.DefaultIdentityDisplay
84 autoConnect = self.tr("Yes") if network.autoConnect() \ 84 autoConnect = (
85 else self.tr("No") 85 self.tr("Yes") if network.autoConnect() else self.tr("No")
86 )
86 87
87 QTreeWidgetItem( 88 QTreeWidgetItem(
88 itm, 89 itm,
89 [self.tr("Identity"), identityName]) 90 [self.tr("Identity"), identityName])
90 QTreeWidgetItem( 91 QTreeWidgetItem(

eric ide

mercurial