(self)
| 3291 | clipboard.setText(fullStringOfAddresses) |
| 3292 | |
| 3293 | def on_action_AddressBookSend(self): |
| 3294 | listOfSelectedRows = {} |
| 3295 | for i in range(len(self.ui.tableWidgetAddressBook.selectedIndexes())): |
| 3296 | listOfSelectedRows[ |
| 3297 | self.ui.tableWidgetAddressBook.selectedIndexes()[i].row()] = 0 |
| 3298 | for currentRow in listOfSelectedRows: |
| 3299 | addressAtCurrentRow = self.ui.tableWidgetAddressBook.item( |
| 3300 | currentRow, 0).address |
| 3301 | labelAtCurrentRow = self.ui.tableWidgetAddressBook.item( |
| 3302 | currentRow, 0).label |
| 3303 | stringToAdd = labelAtCurrentRow + " <" + addressAtCurrentRow + ">" |
| 3304 | if self.ui.lineEditTo.text() == '': |
| 3305 | self.ui.lineEditTo.setText(stringToAdd) |
| 3306 | else: |
| 3307 | self.ui.lineEditTo.setText(unicode( |
| 3308 | self.ui.lineEditTo.text().toUtf8(), encoding="UTF-8") + '; ' + stringToAdd) |
| 3309 | if listOfSelectedRows == {}: |
| 3310 | self.updateStatusBar(_translate( |
| 3311 | "MainWindow", "No addresses selected.")) |
| 3312 | else: |
| 3313 | self.statusbar.clearMessage() |
| 3314 | self.ui.tabWidget.setCurrentIndex( |
| 3315 | self.ui.tabWidget.indexOf(self.ui.send) |
| 3316 | ) |
| 3317 | |
| 3318 | def on_action_AddressBookSubscribe(self): |
| 3319 | listOfSelectedRows = {} |
nothing calls this directly
no test coverage detected