diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 117def732..c4d3d0922 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -985,7 +985,7 @@ class ElectrumWindow(QMainWindow): self.fee_e.textChanged.connect(entry_changed) self.invoices_label = QLabel(_('Invoices')) - self.invoices_list = MyTreeWidget(self, self.create_invoice_menu, + self.invoices_list = MyTreeWidget(self, self.invoices_list_menu, [_('Date'), _('Requestor'), _('Description'), _('Amount'), _('Status')], 2) self.invoices_list.header().setResizeMode(1, QHeaderView.Interactive) self.invoices_list.setColumnWidth(1, 200) @@ -1561,7 +1561,7 @@ class ElectrumWindow(QMainWindow): self.payment_request_error() - def create_invoice_menu(self, position): + def invoices_list_menu(self, position): item = self.invoices_list.itemAt(position) if not item: return diff --git a/plugins/email.py b/plugins/email.py index 21e99c783..1c595f1cc 100644 --- a/plugins/email.py +++ b/plugins/email.py @@ -140,9 +140,6 @@ class Plugin(BasePlugin): self.win = gui.main_window self.win.connect(self.win, SIGNAL('email:new_invoice'), self.new_invoice) - #self.send_button = EnterButton(_('Send'), self.send) - #self.win.receive_buttons.insertWidget(1, self.send_button) - @hook def receive_list_menu(self, menu, addr): menu.addAction(_("Send via e-mail"), lambda: self.send(addr))