commit 02798aeb397b7d724d64b4467c96940147ba89fa
parent 3ce0f7f0cd0351177fa645378eca621341141421
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 23 Jan 2019 17:22:58 +0100
sort requests by date
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/electrum/gui/qt/request_list.py b/electrum/gui/qt/request_list.py
@@ -167,6 +167,8 @@ class RequestList(MyTreeView):
items[0].setData(REQUEST_TYPE_LN, ROLE_REQUEST_TYPE)
items[0].setData(payreq_key, ROLE_RHASH_OR_ADDR)
self.model().insertRow(self.model().rowCount(), items)
+ # sort requests by date
+ self.model().sort(0)
def create_menu(self, position):
idx = self.indexAt(position)