fix #6168: "'MySortModel' object has no attribute 'item'"

This commit is contained in:
SomberNight 2020-05-21 19:16:19 +02:00
parent 717d112b26
commit dfb3138d87
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -78,7 +78,7 @@ class InvoiceList(MyTreeView):
self.update()
def update_item(self, key, req):
model = self.model()
model = self.std_model
for row in range(0, model.rowCount()):
item = model.item(row, 0)
if item.data(ROLE_REQUEST_ID) == key: