tMerge pull request #2953 from SomberNight/contacts_edit_crash - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit bc4b263cab8040bc1c7370d330d8748dab939091 DIR parent 1daecf285d27f369eade81ba58f6d34528508c05 HTML 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: M gui/qt/contact_list.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- DIR diff --git a/gui/qt/contact_list.py b/gui/qt/contact_list.py t@@ -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))