(self, thisTableWidget)
| 3696 | self.on_action_SetAvatar(self.ui.tableWidgetAddressBook) |
| 3697 | |
| 3698 | def on_action_SetAvatar(self, thisTableWidget): |
| 3699 | currentRow = thisTableWidget.currentRow() |
| 3700 | addressAtCurrentRow = thisTableWidget.item( |
| 3701 | currentRow, 1).text() |
| 3702 | setToIdenticon = not self.setAvatar(addressAtCurrentRow) |
| 3703 | if setToIdenticon: |
| 3704 | thisTableWidget.item( |
| 3705 | currentRow, 0).setIcon(avatarize(addressAtCurrentRow)) |
| 3706 | |
| 3707 | def setAvatar(self, addressAtCurrentRow): |
| 3708 | if not os.path.exists(state.appdata + 'avatars/'): |
no test coverage detected