Network/IRC/IrcNetworkListDialog.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3036
30c81c9e88b8
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
81 server = network.getServer() 81 server = network.getServer()
82 identityName = network.getIdentityName() 82 identityName = network.getIdentityName()
83 if identityName == IrcIdentity.DefaultIdentityName: 83 if identityName == IrcIdentity.DefaultIdentityName:
84 identityName = IrcIdentity.DefaultIdentityDisplay 84 identityName = IrcIdentity.DefaultIdentityDisplay
85 autoConnect = self.trUtf8("Yes") if network.autoConnect() \ 85 autoConnect = self.trUtf8("Yes") if network.autoConnect() \
86 else self.trUtf8("No") 86 else self.trUtf8("No")
87 87
88 QTreeWidgetItem( 88 QTreeWidgetItem(
89 itm, 89 itm,
90 [self.trUtf8("Identity"), identityName]) 90 [self.trUtf8("Identity"), identityName])
91 QTreeWidgetItem( 91 QTreeWidgetItem(
163 res = E5MessageBox.yesNo( 163 res = E5MessageBox.yesNo(
164 self, 164 self,
165 self.trUtf8("Delete Irc Network"), 165 self.trUtf8("Delete Irc Network"),
166 self.trUtf8( 166 self.trUtf8(
167 """Do you really want to delete IRC network <b>{0}</b>?""") 167 """Do you really want to delete IRC network <b>{0}</b>?""")
168 .format(networkName)) 168 .format(networkName))
169 if res: 169 if res:
170 index = self.networksList.indexOfTopLevelItem(itm) 170 index = self.networksList.indexOfTopLevelItem(itm)
171 self.networksList.takeTopLevelItem(index) 171 self.networksList.takeTopLevelItem(index)
172 del itm 172 del itm
173 173

eric ide

mercurial