diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 99cd6620..63013a53 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1213,7 +1213,7 @@ class ElectrumWindow(QMainWindow): run_hook('create_contact_menu', menu, item) menu.exec_(self.contacts_list.viewport().mapToGlobal(position)) - def delete_invoice(self, item): + def delete_invoice(self, key): self.invoices.pop(key) self.wallet.storage.put('invoices', self.invoices) self.update_invoices_tab()