@ -459,7 +462,10 @@ class MyForm(settingsmixin.SMainWindow):
widgets={}
foriinrange(0,treeWidget.topLevelItemCount()):
widget=treeWidget.topLevelItem(i)
toAddress=widget.address
ifwidgetisnotNone:
toAddress=widget.address
else:
toAddress=None
ifnottoAddressindb:
treeWidget.takeTopLevelItem(i)
@ -3561,6 +3567,24 @@ class MyForm(settingsmixin.SMainWindow):
defon_action_YourIdentitiesNew(self):
self.click_NewAddressDialog()
defon_action_YourIdentitiesDelete(self):
account=self.getCurrentItem()
ifaccount.type=="normal":
return# maybe in the future
elifaccount.type=="chan":
ifQtGui.QMessageBox.question(self,"Delete channel?",_translate("MainWindow","If you delete the channel, messages that you already received will become inaccessible. Maybe you can consider disabling the channel instead. Disabled channels will not receive new messages, but you can still view messages you already received.\n\nAre you sure you want to delete the channel?"),QMessageBox.Yes|QMessageBox.No)==QMessageBox.Yes: