1
0

follow-up ba2faa8. fixes #8294

This commit is contained in:
ThomasV
2023-04-04 10:23:30 +02:00
parent ebdebd18b4
commit 479f952c9d

View File

@@ -74,8 +74,8 @@ class QEAbstractInvoiceListModel(QAbstractListModel):
def add_invoice(self, invoice: BaseInvoice):
# skip if already in list
key = invoice.get_id()
for invoice in self.invoices:
if invoice['key'] == key:
for x in self.invoices:
if x['key'] == key:
return
item = self.invoice_to_model(invoice)