Browse Source

Merge pull request #6754 from nc50lc/master

Fix Import/Export contacts issue
patch-4
ThomasV 4 years ago
committed by GitHub
parent
commit
8e2320552f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      electrum/gui/qt/contact_list.py

4
electrum/gui/qt/contact_list.py

@ -73,8 +73,8 @@ class ContactList(MyTreeView):
selected_keys.append(sel_key) selected_keys.append(sel_key)
if not selected_keys or not idx.isValid(): if not selected_keys or not idx.isValid():
menu.addAction(_("New contact"), lambda: self.parent.new_contact_dialog()) menu.addAction(_("New contact"), lambda: self.parent.new_contact_dialog())
menu.addAction(_("Import file"), lambda: self.import_contacts()) menu.addAction(_("Import file"), lambda: self.parent.import_contacts())
menu.addAction(_("Export file"), lambda: self.export_contacts()) menu.addAction(_("Export file"), lambda: self.parent.export_contacts())
else: else:
column_title = self.model().horizontalHeaderItem(column).text() column_title = self.model().horizontalHeaderItem(column).text()
column_data = '\n'.join(self.model().itemFromIndex(s_idx).text() column_data = '\n'.join(self.model().itemFromIndex(s_idx).text()

Loading…
Cancel
Save