1
0

Keep filter after updating the list

This commit is contained in:
Johann Bauer
2017-02-16 17:10:02 +01:00
parent 20ed54c22b
commit ec6ab022e3
7 changed files with 17 additions and 6 deletions

View File

@@ -1711,15 +1711,15 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
def do_search(self, t):
i = self.tabs.currentIndex()
if i == 0:
self.history_list.filter(t, [2, 3, 4]) # Date, Description, Amount
self.history_list.filter(t)
elif i == 1:
self.invoice_list.filter(t, [0, 1, 2, 3]) # Date, Requestor, Description, Amount
self.invoice_list.filter(t)
elif i == 2:
self.request_list.filter(t, [0, 1, 2, 3, 4]) # Date, Account, Address, Description, Amount
self.request_list.filter(t)
elif i == 3:
self.address_list.filter(t, [0,1, 2]) # Address, Label, Balance
self.address_list.filter(t)
elif i == 4:
self.contact_list.filter(t, [0, 1]) # Key, Value
self.contact_list.filter(t)
def new_contact_dialog(self):