From 33da9941319d72e574bb1582dc950cd05f661434 Mon Sep 17 00:00:00 2001 From: nc50lc Date: Sat, 21 Nov 2020 12:30:57 +0800 Subject: [PATCH] Update contact_list.py Try to fix https://github.com/spesmilo/electrum/issues/6356 --- electrum/gui/qt/contact_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qt/contact_list.py b/electrum/gui/qt/contact_list.py index 3cb579095..2b8dd41a4 100644 --- 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()