commit 94443ebe5e42d21a47c3ad9d8b0a00fd71c63640
parent abb076061615e77cf01ed105a9520ab7f8eaad42
Author: ThomasV <thomasv@electrum.org>
Date: Tue, 3 Mar 2020 11:25:54 +0100
Qt: list requests and invoices in descending order
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/electrum/gui/qt/invoice_list.py b/electrum/gui/qt/invoice_list.py
@@ -128,7 +128,7 @@ class InvoiceList(MyTreeView):
self.selectionModel().select(self.model().index(0,0), QItemSelectionModel.SelectCurrent)
# sort requests by date
- self.sortByColumn(self.Columns.DATE, Qt.AscendingOrder)
+ self.sortByColumn(self.Columns.DATE, Qt.DescendingOrder)
# hide list if empty
if self.parent.isVisible():
b = self.model().rowCount() > 0
diff --git a/electrum/gui/qt/request_list.py b/electrum/gui/qt/request_list.py
@@ -151,7 +151,7 @@ class RequestList(MyTreeView):
self.model().insertRow(self.model().rowCount(), items)
self.filter()
# sort requests by date
- self.sortByColumn(self.Columns.DATE, Qt.AscendingOrder)
+ self.sortByColumn(self.Columns.DATE, Qt.DescendingOrder)
# hide list if empty
if self.parent.isVisible():
b = self.model().rowCount() > 0