src/eric7/Network/IRC/IrcNetworkEditDialog.py

branch
eric7
changeset 11006
a671918232f3
parent 10690
fab36645aa7d
child 11090
f5f5f5803935
equal deleted inserted replaced
11005:b918c6c2736b 11006:a671918232f3
134 Private slot to edit the identities. 134 Private slot to edit the identities.
135 """ 135 """
136 from .IrcIdentitiesEditDialog import IrcIdentitiesEditDialog 136 from .IrcIdentitiesEditDialog import IrcIdentitiesEditDialog
137 137
138 currentIdentity = self.identityCombo.currentText() 138 currentIdentity = self.identityCombo.currentText()
139 dlg = IrcIdentitiesEditDialog(self.__manager, currentIdentity, self) 139 dlg = IrcIdentitiesEditDialog(self.__manager, currentIdentity, parent=self)
140 dlg.exec() 140 dlg.exec()
141 self.__refreshIdentityCombo(currentIdentity) 141 self.__refreshIdentityCombo(currentIdentity)
142 142
143 @pyqtSlot(str) 143 @pyqtSlot(str)
144 def on_serverEdit_textChanged(self, _txt): 144 def on_serverEdit_textChanged(self, _txt):
155 """ 155 """
156 Private slot to edit the server configuration. 156 Private slot to edit the server configuration.
157 """ 157 """
158 from .IrcServerEditDialog import IrcServerEditDialog 158 from .IrcServerEditDialog import IrcServerEditDialog
159 159
160 dlg = IrcServerEditDialog(self.__network.getServer()) 160 dlg = IrcServerEditDialog(self.__network.getServer(), parent=self)
161 if dlg.exec() == QDialog.DialogCode.Accepted: 161 if dlg.exec() == QDialog.DialogCode.Accepted:
162 self.__network.setServer(dlg.getServer()) 162 self.__network.setServer(dlg.getServer())
163 self.serverEdit.setText(self.__network.getServerName()) 163 self.serverEdit.setText(self.__network.getServerName())
164 164
165 @pyqtSlot() 165 @pyqtSlot()
240 # add a new channel 240 # add a new channel
241 name = "" 241 name = ""
242 key = "" 242 key = ""
243 autoJoin = False 243 autoJoin = False
244 244
245 dlg = IrcChannelEditDialog(name, key, autoJoin, itm is not None, self) 245 dlg = IrcChannelEditDialog(name, key, autoJoin, itm is not None, parent=self)
246 if dlg.exec() == QDialog.DialogCode.Accepted: 246 if dlg.exec() == QDialog.DialogCode.Accepted:
247 name, key, autoJoin = dlg.getData() 247 name, key, autoJoin = dlg.getData()
248 channel = IrcChannel(name) 248 channel = IrcChannel(name)
249 channel.setKey(key) 249 channel.setKey(key)
250 channel.setAutoJoin(autoJoin) 250 channel.setAutoJoin(autoJoin)

eric ide

mercurial