From b6c7a97d5f9ac61f24ca4969b7a63561ba85c6a3 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 26 Apr 2015 14:31:27 +0200 Subject: [PATCH] search invoices list by description --- gui/qt/main_window.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 82a3509f..a81fda85 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -967,8 +967,12 @@ class ElectrumWindow(QMainWindow): self.fee_e.textChanged.connect(entry_changed) self.invoices_label = QLabel(_('Invoices')) - self.invoices_list = MyTreeWidget(self, self.create_invoice_menu, [_('Date'), _('Requestor'), _('Memo'), _('Amount'), _('Status')], [150, 150, None, 150, 100]) - + self.invoices_list = MyTreeWidget( + self, + self.create_invoice_menu, + [_('Date'), _('Requestor'), _('Description'), _('Amount'), _('Status')], + [150, 150, None, 150, 100] + ) vbox0 = QVBoxLayout() vbox0.addLayout(grid) vbox0.addLayout(buttons) @@ -1711,7 +1715,7 @@ class ElectrumWindow(QMainWindow): if i == 0: self.history_list.filter(t, 2) elif i == 1: - self.invoices_list.filter(t, 1) + self.invoices_list.filter(t, 2) elif i == 2: self.receive_list.filter(t, 3) elif i == 3: