1
0

Strip whitespace from amounts when copying. Fix bug in request list where address was copied instead of column specific data (#5228)

This commit is contained in:
Abdussamad Abdurrazzaq
2019-04-05 18:59:14 +05:00
committed by ghost43
parent 441da52b51
commit ffe676bc28
5 changed files with 17 additions and 3 deletions

View File

@@ -109,6 +109,8 @@ class InvoiceList(MyTreeView):
status = self.parent.invoices.get_status(key)
menu = QMenu(self)
if column_data:
if column == self.Columns.AMOUNT:
column_data = column_data.strip()
menu.addAction(_("Copy {}").format(column_title), lambda: self.parent.app.clipboard().setText(column_data))
menu.addAction(_("Details"), lambda: self.parent.show_invoice(key))
if status == PR_UNPAID: