commit 8e2320552fd8d2aece0ffd57598affd6908bd518
parent 43c5df2ab5797a357b359e20c7fc1b6319b48026
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 25 Nov 2020 11:51:17 +0100
Merge pull request #6754 from nc50lc/master
Fix Import/Export contacts issue
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/electrum/gui/qt/contact_list.py b/electrum/gui/qt/contact_list.py
@@ -73,8 +73,8 @@ class ContactList(MyTreeView):
selected_keys.append(sel_key)
if not selected_keys or not idx.isValid():
menu.addAction(_("New contact"), lambda: self.parent.new_contact_dialog())
- menu.addAction(_("Import file"), lambda: self.import_contacts())
- menu.addAction(_("Export file"), lambda: self.export_contacts())
+ menu.addAction(_("Import file"), lambda: self.parent.import_contacts())
+ menu.addAction(_("Export file"), lambda: self.parent.export_contacts())
else:
column_title = self.model().horizontalHeaderItem(column).text()
column_data = '\n'.join(self.model().itemFromIndex(s_idx).text()