File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3180,12 +3180,15 @@ def on_action_AddressBookSend(self):
31803180 self .ui .tableWidgetAddressBook .selectedIndexes ()[i ].row ()] = 0
31813181 for currentRow in listOfSelectedRows :
31823182 addressAtCurrentRow = self .ui .tableWidgetAddressBook .item (
3183- currentRow , 1 ).text ()
3183+ currentRow , 0 ).address
3184+ labelAtCurrentRow = self .ui .tableWidgetAddressBook .item (
3185+ currentRow , 0 ).label
3186+ stringToAdd = labelAtCurrentRow + " <" + addressAtCurrentRow + ">"
31843187 if self .ui .lineEditTo .text () == '' :
3185- self .ui .lineEditTo .setText (str ( addressAtCurrentRow ) )
3188+ self .ui .lineEditTo .setText (stringToAdd )
31863189 else :
31873190 self .ui .lineEditTo .setText (str (
3188- self .ui .lineEditTo .text ()) + '; ' + str ( addressAtCurrentRow ) )
3191+ self .ui .lineEditTo .text ()) + '; ' + stringToAdd )
31893192 if listOfSelectedRows == {}:
31903193 self .statusBar ().showMessage (_translate (
31913194 "MainWindow" , "No addresses selected." ))
You can’t perform that action at this time.
0 commit comments