commit bc4b263cab8040bc1c7370d330d8748dab939091
parent 1daecf285d27f369eade81ba58f6d34528508c05
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 30 Sep 2017 08:54:24 +0200
Merge pull request #2953 from SomberNight/contacts_edit_crash
fix: contact name editing
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/gui/qt/contact_list.py b/gui/qt/contact_list.py
@@ -81,6 +81,7 @@ class ContactList(MyTreeWidget):
column_data = '\n'.join([item.text(column) for item in selected])
menu.addAction(_("Copy %s")%column_title, lambda: self.parent.app.clipboard().setText(column_data))
if column in self.editable_columns:
+ item = self.currentItem()
menu.addAction(_("Edit %s")%column_title, lambda: self.editItem(item, column))
menu.addAction(_("Pay to"), lambda: self.parent.payto_contacts(keys))
menu.addAction(_("Delete"), lambda: self.parent.delete_contacts(keys))