mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
Qt: list requests and invoices in descending order
This commit is contained in:
parent
abb0760616
commit
94443ebe5e
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue