(self)
| 3601 | self.click_NewAddressDialog() |
| 3602 | |
| 3603 | def on_action_YourIdentitiesDelete(self): |
| 3604 | account = self.getCurrentItem() |
| 3605 | if account.type == AccountMixin.NORMAL: |
| 3606 | return # maybe in the future |
| 3607 | elif account.type == AccountMixin.CHAN: |
| 3608 | if QtGui.QMessageBox.question( |
| 3609 | self, "Delete channel?", |
| 3610 | _translate( |
| 3611 | "MainWindow", |
| 3612 | "If you delete the channel, messages that you" |
| 3613 | " already received will become inaccessible." |
| 3614 | " Maybe you can consider disabling the channel" |
| 3615 | " instead. Disabled channels will not receive new" |
| 3616 | " messages, but you can still view messages you" |
| 3617 | " already received.\n\nAre you sure you want to" |
| 3618 | " delete the channel?" |
| 3619 | ), QtGui.QMessageBox.Yes | QtGui.QMessageBox.No |
| 3620 | ) == QtGui.QMessageBox.Yes: |
| 3621 | BMConfigParser().remove_section(str(account.address)) |
| 3622 | else: |
| 3623 | return |
| 3624 | else: |
| 3625 | return |
| 3626 | BMConfigParser().save() |
| 3627 | shared.reloadMyAddressHashes() |
| 3628 | self.rerenderAddressBook() |
| 3629 | self.rerenderComboBoxSendFrom() |
| 3630 | if account.type == AccountMixin.NORMAL: |
| 3631 | self.rerenderTabTreeMessages() |
| 3632 | elif account.type == AccountMixin.CHAN: |
| 3633 | self.rerenderTabTreeChans() |
| 3634 | |
| 3635 | def on_action_Enable(self): |
| 3636 | addressAtCurrentRow = self.getCurrentAccount() |
nothing calls this directly
no test coverage detected