(self, address = None)
| 2951 | return '\n'.join([quote_line(l) for l in message.splitlines()]) + '\n\n' |
| 2952 | |
| 2953 | def setSendFromComboBox(self, address = None): |
| 2954 | if address is None: |
| 2955 | messagelist = self.getCurrentMessagelist() |
| 2956 | if messagelist: |
| 2957 | currentInboxRow = messagelist.currentRow() |
| 2958 | address = messagelist.item( |
| 2959 | currentInboxRow, 0).address |
| 2960 | for box in [self.ui.comboBoxSendFrom, self.ui.comboBoxSendFromBroadcast]: |
| 2961 | listOfAddressesInComboBoxSendFrom = [str(box.itemData(i).toPyObject()) for i in range(box.count())] |
| 2962 | if address in listOfAddressesInComboBoxSendFrom: |
| 2963 | currentIndex = listOfAddressesInComboBoxSendFrom.index(address) |
| 2964 | box.setCurrentIndex(currentIndex) |
| 2965 | else: |
| 2966 | box.setCurrentIndex(0) |
| 2967 | |
| 2968 | def on_action_InboxReplyChan(self): |
| 2969 | self.on_action_InboxReply(self.REPLY_TYPE_CHAN) |
no test coverage detected