sort requests by date
This commit is contained in:
@@ -167,6 +167,8 @@ class RequestList(MyTreeView):
|
|||||||
items[0].setData(REQUEST_TYPE_LN, ROLE_REQUEST_TYPE)
|
items[0].setData(REQUEST_TYPE_LN, ROLE_REQUEST_TYPE)
|
||||||
items[0].setData(payreq_key, ROLE_RHASH_OR_ADDR)
|
items[0].setData(payreq_key, ROLE_RHASH_OR_ADDR)
|
||||||
self.model().insertRow(self.model().rowCount(), items)
|
self.model().insertRow(self.model().rowCount(), items)
|
||||||
|
# sort requests by date
|
||||||
|
self.model().sort(0)
|
||||||
|
|
||||||
def create_menu(self, position):
|
def create_menu(self, position):
|
||||||
idx = self.indexAt(position)
|
idx = self.indexAt(position)
|
||||||
|
|||||||
Reference in New Issue
Block a user